I am currently working on a project that requires conversion of Hex binary fingerprint to a Base64 encoded fingerprint and vice vesra.
e.g. Hex binary format: c88266d6581aab3e357342ae7c9c4c87a08a4a0f Base 64 encoded: yIJm1lgaqz41c0KufJxMh6CKSg8=
Can anyone please help me with the code/ logic that would help me achieve my requirement?
Thanks in advance, Anup
Joined: Aug 05, 2005
Do you want to actually write a Base64 Encoder/Decoder or are you happy to use an existing one ? If the latter, then read this for a way to do it with the standard API. There are also 3rd party APIs available that are probably easier to use. Search this forum and/or Google. I've seen the one from SourceForge get mentioned quite often, but haven't actually used it myself.
Joined: Mar 22, 2005
The Jakarta Commons Codec library can perform base64-encoding/decoding.