This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jasypt - Decryption not works for me  RSS feed

 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,



My encryptTxt() method is working fine but when decryptTxt() method provide same output like encryptTxt()

Her is the output:


Please advise why decrypt method is not working
 
Farakh khan
Ranch Hand
Posts: 833
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Farakh khan wrote:
System.out.println("password=>"+password);
System.out.println("dpassword=>"+password);
[/code]

Sometime error is in our front but not able to see. I become idiot and was printing password on both places when I changed to dpassword then its work fine

Sorry to bother you all
 
Nikhil Bahrani
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Farakh Khan  oes this code work for Password encryption and decrytpion?
If NO,can you help me find that?
If yes, then what we need to pass to the encryptTxt method in case of Password
Line in code: public static String encryptTxt(String txt)

Please reply Asap.

Thank in Advance.
Nikhil.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!