The motivation for
this
implementation was Java enabled cellphones with tight memory
requirements.
Russell Beattie ported
this code to
Java, I then inlined everything that was called once to reduce the
footprint.
J2SE implementations can use the builtin java.security classes.
demo
You can honestly take my name out of that code now - it has little to do with anything I contributed, really. Adding types to someone else's script and then giving it to you to clean up and make work does not equal a contribution. :-)
Nice job Sam! Now if I can just get the freakin app to work.
Many thanks for this implementation.
Would you be kind enough to help me get the hash as a byte array ?
Just as the MessageDigest.getInstance("SHA-1").digest();
would do in regular J2SE Java.
I’m not an expert in crypto and I cant figure out where to do that in your code.
I’ve been trying to convert the Base64 String you return to a byte[] but the result for a given string doesn’t match with the one given by MessageDigest ...
Hello all, Is there a way in j2me to “calculate” the SHA1 Fingerprint of a Server SSL Certificate that it is exchange during an HttpsConnection? i know that there is only custom implementations of sha1 algorithm in j2me like...