Browse Source

Update README.md

lost a "!"
SLboat 9 years ago
parent
commit
4b7e723978
1 changed files with 1 additions and 1 deletions
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -215,7 +215,7 @@ let base64: String = try! "my secret string".encrypt(AES(key: "secret0key000000"
 ...under the hood, this is [UInt8] converted to NSData converted to Base64 string representation:
 ...under the hood, this is [UInt8] converted to NSData converted to Base64 string representation:
 
 
 ```swift
 ```swift
-let encryptedBytes: [UInt8] = try "my secret string".encrypt(AES(key: "secret0key000000", iv: "0123456789012345"))
+let encryptedBytes: [UInt8] = try! "my secret string".encrypt(AES(key: "secret0key000000", iv: "0123456789012345"))
 
 
 let base64 = NSData(bytes: encryptedBytes).base64EncodedStringWithOptions(NSDataBase64EncodingOptions.Encoding64CharacterLineLength)
 let base64 = NSData(bytes: encryptedBytes).base64EncodedStringWithOptions(NSDataBase64EncodingOptions.Encoding64CharacterLineLength)
 ```
 ```