|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.wizzardo.tools.security.AES
public class AES
| Constructor Summary | |
|---|---|
AES()
|
|
AES(byte[] key)
|
|
AES(javax.crypto.SecretKey key)
16 chars max, 128-bit encription |
|
AES(java.lang.String key)
16 chars max, 128-bit encription |
|
| Method Summary | |
|---|---|
byte[] |
decrypt(byte[] b)
|
void |
decrypt(java.io.InputStream in,
java.io.OutputStream out)
|
byte[] |
encrypt(byte[] b)
|
void |
encrypt(java.io.InputStream in,
java.io.OutputStream out)
|
static javax.crypto.SecretKey |
generateKey()
|
static javax.crypto.SecretKey |
generateKey(byte[] key)
16 bytes max, 128-bit encription |
static javax.crypto.SecretKey |
generateKey(java.lang.String key)
16 chars max, 128-bit encription |
static javax.crypto.SecretKey |
generateKeyAsMD5(java.lang.String key)
|
byte[] |
toTransfer()
|
static byte[] |
toTransfer(javax.crypto.SecretKey key)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AES()
public AES(javax.crypto.SecretKey key)
public AES(byte[] key)
public AES(java.lang.String key)
| Method Detail |
|---|
public static javax.crypto.SecretKey generateKey()
public static javax.crypto.SecretKey generateKey(java.lang.String key)
public static javax.crypto.SecretKey generateKeyAsMD5(java.lang.String key)
public static javax.crypto.SecretKey generateKey(byte[] key)
public byte[] toTransfer()
public static byte[] toTransfer(javax.crypto.SecretKey key)
public byte[] decrypt(byte[] b)
public byte[] encrypt(byte[] b)
public void decrypt(java.io.InputStream in,
java.io.OutputStream out)
public void encrypt(java.io.InputStream in,
java.io.OutputStream out)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||