public class EncryptDecryptHelper extends Object
| Constructor and Description |
|---|
EncryptDecryptHelper() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getDecrypted(byte[] array)
Decrypt the given array and return the de-crypted one
|
static byte[] |
getEncrypted(byte[] array)
Encrypt the given array and return the encrypted one
|
static void |
init(String pass)
Set the password for encrypt / de-crypt.
|
public static void init(String pass)
getDecrypted(byte[]) and getEncrypted(byte[]).
So to be safe its the best to call this in a constructorpass - public static byte[] getEncrypted(byte[] array)
array - public static byte[] getDecrypted(byte[] array)
array - Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.