Encrypt Method
Encrypts a buffer.
Syntax
public func encrypt(buffer: Data) throws -> Data
Remarks
Use this method to encrypt a byte array and get the protected message in another byte array.
Specify the encryption key in the Key property before commencing encryption.