Base64 of SHA1 for J2ME
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