public class EncryptionUtil extends Object
| Constructor and Description |
|---|
EncryptionUtil()
Initializes EncryptionUtil
|
EncryptionUtil(String key) |
| Modifier and Type | Method and Description |
|---|---|
String |
decrypt(String toDecrypt)
Provides decryption of a String encrypted using encrypt()
|
String |
encrypt(String toEncrypt)
Provides basic encryption on a String.
|
static void |
main(String[] args)
This main prompts the user to input a string to be encrypted.
|
public EncryptionUtil()
throws DuraCloudRuntimeException
ExceptionDuraCloudRuntimeExceptionpublic EncryptionUtil(String key) throws DuraCloudRuntimeException
DuraCloudRuntimeExceptionpublic String encrypt(String toEncrypt) throws DuraCloudRuntimeException
DuraCloudRuntimeExceptionpublic String decrypt(String toDecrypt) throws DuraCloudRuntimeException
DuraCloudRuntimeExceptionCopyright © 2009–2017 DuraSpace. All rights reserved.