* 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);
}
//