]> git.mxchange.org Git - core.git/blobdiff - inc/classes/interfaces/crypto/class_Cryptable.php
The FilterChain class is now registerable
[core.git] / inc / classes / interfaces / crypto / class_Cryptable.php
index d9556834e1807a232e20c4dee795379b73c49a29..14533c3d6053aa314d770e1da9b5ac18d11a0fe1 100644 (file)
@@ -38,9 +38,10 @@ interface Cryptable extends FrameworkInterface {
         * 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
         */
-       function encryptString ($str);
+       function encryptString ($str, $key = NULL);
 
        /**
         * Decrypt the string with fixed salt