Package org.bardframework.commons.utils
Class EncryptionUtil
java.lang.Object
org.bardframework.commons.utils.EncryptionUtil
Created by Vahid Zafari on 4/21/2016.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EncryptionUtil
public EncryptionUtil()
-
-
Method Details
-
encrypt
public static byte[] encrypt(byte[] rawData, byte[] key) - Returns:
- if rawDate==null then returns byte object with zero length
-
encrypt
-
decrypt
public static byte[] decrypt(byte[] encryptedData, byte[] key) - Returns:
- if encryptedData==null then returns byte object with zero length
-
decrypt
-