Package com.stimulsoft.base.licenses
Class StiCryptHelper
java.lang.Object
com.stimulsoft.base.licenses.StiCryptHelper
Copyright Stimulsoft
-
Constructor Details
-
StiCryptHelper
public StiCryptHelper()
-
-
Method Details
-
encrypt
public static byte[] encrypt(byte[] bytes, String password) throws InvalidKeyException, InvalidAlgorithmParameterException, NoSuchAlgorithmException, NoSuchProviderException, NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException -
encrypt
public static String encrypt(String str, String password) throws InvalidKeyException, InvalidAlgorithmParameterException, NoSuchAlgorithmException, NoSuchProviderException, NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException, UnsupportedEncodingException -
decrypt
public static byte[] decrypt(byte[] bytes, String password) throws InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException, NoSuchAlgorithmException, NoSuchPaddingException, NoSuchProviderException -
decrypt
public static String decrypt(String str, String password) throws InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException, NoSuchAlgorithmException, NoSuchProviderException, NoSuchPaddingException, UnsupportedEncodingException -
recrypt
public static String recrypt(String str, String oldPassword, String newPassword) throws InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException, NoSuchAlgorithmException, NoSuchProviderException, NoSuchPaddingException, UnsupportedEncodingException -
MD5
public static String MD5(String value) throws NoSuchAlgorithmException, UnsupportedEncodingException
-