Friday, 15 August 2014

java - What specific hash algorithm does MessageDigest.getInstance("SHA") return? -



java - What specific hash algorithm does MessageDigest.getInstance("SHA") return? -

messagedigest.getinstance("sha") seems work , gives me messagedigest, can't tell algorithm it's giving me.

is sha-1 or sha-0 or ..?

i'm not interested in happens on machine. want know whether homecoming sha0 or sha1 valid implementations of java (or it's undefined).

the jce specification lists standard names implementation expected support. "sha-1" specified, sha-256, sha-384, , sha-512. "sha", "sha-0" , sha-2" not standard names , hence may not supported @ all. cannot guarantee "sha" return, if @ all, because not in standard.

java cryptography undefined-behavior

No comments:

Post a Comment