Encrypt Method
Encrypts a buffer.
Syntax
public fun encrypt(buffer: ByteArray?): ByteArray?
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.