SHA-1 and Unicode

Is SHA-1 algorithm behavior specific to Unicode strings? I really understand that SHA-1 itself does not care about the contents of the string, however,
it seems to me that in order to pass standard tests for SHA-1, the input string must be encoded in UTF-8.

+3
source share
1 answer

SHA-1 is byte based; he does not care about the data structure. If you give it a bunch of bytes consisting of Unicode strings, you will get the result. Keep in mind that the block size is 512 bits, so less data can cause security problems.

+4
source

Source: https://habr.com/ru/post/1739933/


All Articles