Class EncryptionUtils
java.lang.Object
org.gcube.spatial.data.geonetwork.utils.EncryptionUtils
Utility class for encryption and decryption operations.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EncryptionUtils
public EncryptionUtils()
-
-
Method Details
-
decrypt
Decrypts the given encrypted string.- Parameters:
toDecrypt- the string to decrypt- Returns:
- the decrypted string
- Throws:
EncryptionException- if decryption fails
-
encrypt
Encrypts the given plain text string.- Parameters:
toEncrypt- the string to encrypt- Returns:
- the encrypted string
- Throws:
EncryptionException- if encryption fails
-