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")