com.annahid.libs.artenus.security
AESBasic
Provides AES encryption functionality.
public class AESBasic
Constructor Summary
| Modifier and Type | Constructor and Description |
|---|---|
public | AESBasic(String password) Creates a new instance of AESBasic with the given password. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
public String | decrypt(String encrypted) Decrypts an encrypted string. |
public String | encrypt(String original) Encrypts a given string. |
Methods inherited from java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitConstructor Detail
| AESBasic | ||
|---|---|---|
public AESBasic(
String password
)Creates a new instance of AESBasic with the given password.Parameters:
|
Method Detail
| decrypt | ||
|---|---|---|
public String decrypt(
String encrypted
)Decrypts an encrypted string. Parameters:
Returns:
The original string. Throws:
|
| encrypt | ||
|---|---|---|
public String encrypt(
String original
)Encrypts a given string. Parameters:
Returns:
The string representation of the encrypted value |