]> git.mxchange.org Git - core.git/blobdiff - inc/classes/interfaces/streams/crypto/class_EncryptableStream.php
Fix for method in FrameworkConfiguration, removal of unneccessary code
[core.git] / inc / classes / interfaces / streams / crypto / class_EncryptableStream.php
index fafb299a58780fc7fdfd89e83636ab2025a52fcd..ae4a5e69d08e43dd61417cb688a2ff9fcf583a77 100644 (file)
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 interface EncryptableStream extends Streamable {
+       /**
+        * Encrypt the string with fixed salt
+        *
+        * @param       $str            The unencrypted string
+        * @return      $encrypted      Encrypted string
+        */
+       function encryptStream ($str);
+
+       /**
+        * Decrypt the string with fixed salt
+        *
+        * @param       $encrypted      Encrypted string
+        * @return      $str            The unencrypted string
+        */
+       function decryptStream ($encrypted);
 }
 
 //