summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
eeb7dee)
Signed-off-by: Roland Häder <roland@mxchange.org>
* Encrypt the string with fixed salt
*
* @param $str The unencrypted string
* Encrypt the string with fixed salt
*
* @param $str The unencrypted string
+ * @param $key Optional key, if none provided, a random key will be generated
* @return $encrypted Encrypted string
*/
* @return $encrypted Encrypted string
*/
- public function encryptStream ($str) {
+ public function encryptStream ($str, $key = NULL) {
// Just handle it over
$encrypted = (string) $str;
// Just handle it over
$encrypted = (string) $str;