* Encrypt the string with fixed salt
*
* @param $str The unencrypted string
- * @param $key Optional key, if none provided, a random key will be generated
+ * @param $key Ignored
* @return $encrypted Encrypted string
*/
- public function encryptStream ($str, $key = NULL) {
- // Just handle it over
- $encrypted = (string) $str;
-
+ public function encryptStream (string $str, string $key = NULL) {
// Return it
- return $encrypted;
+ return $str;
}
/**
* Decrypt the string with fixed salt
*
* @param $encrypted Encrypted string
+ * @param $key Ignored
* @return $str The unencrypted string
*/
- public function decryptStream ($encrypted) {
- // Just handle it over
- $str = (string) $encrypted;
-
+ public function decryptStream (string $encrypted, string $key = NULL) {
// Return it
- return $str;
+ return $encrypted;
}
/**