Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

AES encryption  RSS feed

 
VinayRaj Vinay
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I am into a requirement where i need to encrypt a string in plain text format to AES and then convert it to Base64 before passing it for decryption. All this encoding is done in LUA. The encoded string is then sent to JAVA where the decryption should happen. But im getting "Final block not properly padded error". Please somebody help me out. The code for encryption which i have used in LUA is


The decryption code which i have written in java is
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!