public class EncryptedString extends Object
| Constructor and Description |
|---|
EncryptedString(String password)
Constructor.
|
public static final String EMPTY
public EncryptedString(String password) throws EncryptionException
password - password used for encryption and decryptionEncryptionException - crypto initialization exceptionpublic boolean isEncrypted(String str)
str - string to checkpublic String decrypt(String str) throws EncryptionException
isEncrypted(String) check with a truereturn value.
str - string to decryptEncryptionException - decryption errorpublic String encrypt(String str) throws EncryptionException
str - string to be encryptedEncryptionException - encryption errorCopyright © 2014. All Rights Reserved.