Encrypts the given byte array using the public key from the Domain object associated with the given EngineObject.

Note
After encryption is done, the input byte array is cleared.

Overload List

  Name Description
Public method Static Encrypt (IEngineObject, Byte) Encrypts the given byte array using the public key from the Domain object associated with the given EngineObject.
Note
After encryption is done, the input byte array is cleared.
Public method Static Encrypt (IEngineObject, Char) Encrypts the given char array using the public key from the Domain object associated with the given EngineObject. The input char array is UTF-8 encoded before encryption.
Note
After encryption is done, the input char array is cleared.
Public method Static Encrypt (IEngineObject, String) Encrypts the given String using the public key from the Domain object associated with the given EngineObject. The input String is UTF-8 encoded before encryption.
Note
You are strongly discouraged from using this method. Strings are immutable, so the plain text data remains in program memory for as long as the application runs, which may be a security risk for truly sensitive data. You are encouraged to use one of the methods for which the input plain text data is an array.

See Also