encrypt (method)
Encrypts a buffer.
Syntax
- (NSData*)encrypt:(NSData*)buffer :(int)startIndex :(int)count;
public func encrypt(_ buffer: Data, _ startIndex: Int32, _ count: Int32) throws -> Data
Remarks
Use this method to encrypt a byte array and get the protected message in another byte array.
Specify encryption keys in EncryptingKeys property, and/or encryption password via Passphrase property.