Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NoSuchAlgorithmException

 
Vinod Awar
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

According to this page, the algorithm is named "AES", not "AES256".
 
Vinod Awar
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic