Google+ Followers

Connect

Get Updates Via Email

Enter your email address:

Delivered by FeedBurner

Sunday, 26 January 2014

Jsp / Java Password Encrypt and Decrypt Example

From Previous post Now in this post I will use Encryption/ Decryption mechanism on password input password field using AES algorithm,

I am just adding UtilsSecure.java class and it has two methods;

1. Encrypt Method encrypt(String strToEncrypt) to encrypt the user given password to cipher text
2. Decrypt Method decrypt(String strToDecrypt) to decrypt the ciper text back to original password content.

Below code shows UtilsSecure.java class file



From the Java class file you can encrypt the password to cipher text and back to original password using decrypt the cipher text done by this below code snippet.

Output

2 comments :

  1. I have read your blog its very attractive and impressive. I like it your blog.

    Java Online Training Java EE Online Training Java EE Online Training Java 8 online training Core Java 8 online training

    Java Online Training from India Java Online Training from India Core Java Training Online Core Java Training Online Java Training InstitutesJava Training Institutes

    ReplyDelete

Share this to your friends