From 159fa5b3112078f292b75c74893a622d6fa84184 Mon Sep 17 00:00:00 2001 From: Panos Sakkos Date: Sun, 29 Jan 2017 17:46:32 +0100 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7cda277..77c9d94 100644 --- a/README.md +++ b/README.md @@ -166,13 +166,13 @@ var encryptedFileOutputStream = NSOutputStream(toFileAtPath: encryptedFilePath, var encryptedFileInputStream = NSInputStream(fileAtPath: encryptedFilePath) var decryptedFileOutputStream = NSOutputStream(toFileAtPath: decryptedFilePath, append:false) -var sc = StreamCryptor(operation:.Encrypt, algorithm:.AES, options:.PKCS7Padding, key:key, iv:Array()) +var sc = StreamCryptor(operation:.encrypt, algorithm:.aes, options:.PKCS7Padding, key:key, iv:Array()) crypt(sc, imageInputStream, encryptedFileOutputStream, 1024) // Uncomment this line to verify that the file is encrypted //var encryptedImage = UIImage(contentsOfFile:encryptedFile) -sc = StreamCryptor(operation:.Decrypt, algorithm:.AES, options:.PKCS7Padding, key:key, iv:Array()) +sc = StreamCryptor(operation:.decrypt, algorithm:.aes, options:.PKCS7Padding, key:key, iv:Array()) crypt(sc, encryptedFileInputStream, decryptedFileOutputStream, 1024) var image = UIImage(named:"Riscal.jpg")