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.
source
share