Class Encryption
java.lang.Object
com.base.commonLibrary.encryption.Encryption
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdecryptPassword(String encryptedPassword) static StringencryptPassword(String plainPassword)
-
Constructor Details
-
Encryption
public Encryption()
-
-
Method Details
-
encryptPassword
public static String encryptPassword(String plainPassword) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException -
decryptPassword
public static String decryptPassword(String encryptedPassword) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException
-