Artenus 2D Framework
Artenus Reference
Provides AES encryption functionality.
public class AESBasic

Constructor Summary

Modifier and TypeConstructor and Description
public AESBasic(String password)
Creates a new instance of AESBasic with the given password.

Method Summary

Modifier and TypeMethod and Description
public Stringdecrypt(String encrypted)
Decrypts an encrypted string.
public Stringencrypt(String original)
Encrypts a given string.

Methods inherited from java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

AESBasic
public  AESBasic(
    String password
)
Creates a new instance of AESBasic with the given password.
Parameters:
passwordThe password for this instance

Method Detail

decrypt
public String decrypt(
    String encrypted
)
Decrypts an encrypted string.
Parameters:
encryptedThe encrypted string.
Returns:
The original string.
Throws:
encrypt
public String encrypt(
    String original
)
Encrypts a given string.
Parameters:
originalThe string to be encrypted
Returns:
The string representation of the encrypted value