|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.universaldevices.security.AES
public class AES
This class encapsulates AES encryption funcationality
Constructor Summary | |
---|---|
AES(java.lang.String skey)
Constructor |
Method Summary | |
---|---|
java.lang.String |
decrypt(byte[] encrypted)
Decrypts the encrypted data based on the key as provided in the constructor |
byte[] |
encrypt(java.lang.String cipherText)
Encrypts the given text using the key as provided in the constructor |
static byte[] |
passwordToKey(java.lang.String password)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AES(java.lang.String skey)
skey
- - the key to be used for encryption an decryptionMethod Detail |
---|
public static byte[] passwordToKey(java.lang.String password)
public byte[] encrypt(java.lang.String cipherText)
cipherText
- - the text to be encrypted
public java.lang.String decrypt(byte[] encrypted)
encrypted
- - the encrypted data
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |