Encrypts the specified string using the configured key/certificate and returns the base64 encoded encrypted string.
Syntax
String
encrypt
(
String
plaintext
) throws SecException
Parameters
-
plaintext –
String to be encrypted using the specified key/certificate.
Returns
Base64 encoded encrypted string
Usage
Use the decrypt method to decrypt the string.