wood burning stoves 2.0*
The moose likes Security and the fly likes NoSuchAlgorithmException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "NoSuchAlgorithmException" Watch "NoSuchAlgorithmException" New topic
Author

NoSuchAlgorithmException

Vinod Awar
Ranch Hand

Joined: Nov 06, 2006
Posts: 125
Hi All,

I was trying to decrypt a file using java, which my friend encrypted using AES256 in vb6.0.my code is as follows




when i run this program iam getting this exception


exception:java.security.NoSuchAlgorithmException: Cannot find any provider supporting AES256

java.security.NoSuchAlgorithmException: Cannot find any provider supporting AES256
at javax.crypto.Cipher.getInstance(DashoA12275)
at FileEncrypter.<init>(FileEncrypter.java:34)
at FileEncrypter.main(FileEncrypter.java:64)
java.lang.NullPointerException
at FileEncrypter.decryptFile(FileEncrypter.java:146)
at FileEncrypter.main(FileEncrypter.java:80)


Any help will be highly appreciated

Thanks


The biggest bankruptcy is the loss of enthusiasm
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
Welcome to JavaRanch.

According to this page, the algorithm is named "AES", not "AES256".


Ping & DNS - updated with new look and Ping home screen widget
Vinod Awar
Ranch Hand

Joined: Nov 06, 2006
Posts: 125
Thank You
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NoSuchAlgorithmException
 
Similar Threads
problem in encryption of ZIP files.
AES256, cryptoPerms and Unlimited Cryptography
encryption decryption
How to create SecretKey for AES 128 Encryption based on user's password??
BadPaddingException with DES