This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Java in General and the fly likes AES encryption Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "AES encryption" Watch "AES encryption" New topic
Author

AES encryption

VinayRaj Vinay
Greenhorn

Joined: Mar 15, 2012
Posts: 1
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AES encryption
 
Similar Threads
SSHTools, SFTP, Bouncy Castle, JCE, AES128 CBC and other acronyms. Help me put them together.
BadPaddingException
AES Encryption Service
IllegalBlockSizeException while decrypting using Triple DES
Padding Exception