encrypt(String) method

Encrypts the specified string using the configured key/certificate and returns the base64 encoded encrypted string.

Syntax

String encrypt ( String plaintext ) throws SecException

Parameters

Returns

Base64 encoded encrypted string

Exceptions

Usage

Use the decrypt method to decrypt the string.

Base64 encoded encrypted string