Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SHA-256

843810Dec 19 2002 — edited Jan 7 2003
i want to user SHA-256 for message digest.
when i run the code below:
java.security.MessageDigest alga=java.security.MessageDigest.getInstance("SHA-256");
alga.update("WORDS".getBytes());
byte[] digesta=alga.digest();

get error:
java.security.NoSuchAlgorithmException: SHA-256 MessageDigest not available

someone help me! thanks a lot!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 4 2003
Added on Dec 19 2002
8 comments
1,931 views