What is the character set SHA1?

I need to know which character SHA1 will generate for me?

Can I recognize the character set SHA1? Or, if it is customizable, what is the default character set?

Thank.

+3
source share
3 answers

I am sure that this is just binary data, not any character encoding. Then you can encode it in Base64 if you want.

+2
source

SHA-1 does not generate text, it generates a binary hash (like most digests), so it does not have an encoding (or cares about the input encoding, for that matter).

( base64 ), , . .

+8

The SHA1 hash algorithm takes a stream of bytes as input and computes a 160-bit digest. Command line versions display the digest as a hexadecimal string. There were no encodings.

+1
source

All Articles