I am trying an encryption-decryption code in java. When I am trying to run it with JDK and code in class with main method it is running fine. But when I am trying to run same code in Tomcat, tomcat is throwing exception:
java.security.NoSuchAlgorithmException: Algorithm HmacSHA256 not available.
Can anybody guide me to proper direction please?
Thank you.
You just be running a different JRE.
Look at this page to tell you what is available in which one.
http://java.sun.com/javase/6/docs/technotes/guides/security/SunProviders.html