Jason Welch
Jason Welch

Reputation: 336

base64'ing a sha1

Why does C#'s tobase64string convert "a46fb104c5ea2fd65df3909f4c6ba4191c2eb4e5" into a 56 character string while the following site: http://tomeko.net/online_tools/hex_to_base64.php?lang=en produced the base64 encoded string I'm trying to achieve? This is driving me effing insane! Haha.

Upvotes: 0

Views: 584

Answers (1)

Tearsdontfalls
Tearsdontfalls

Reputation: 777

You have to convert it to a byte array first.

Upvotes: 1

Related Questions