2 ms·
If there are only two fields, and the length of one is fixed (the salt) then the encoding is unique. SHA1 (and other cryptographic hash functions) generally al
by tatersolid 9y ago
If there are only two fields, and the length of one is fixed (the salt) then the encoding is unique.
SHA1 (and other cryptographic hash functions) generally already include the length as something that is part of the hash itself, so your “length encoding” is completely redundant in the case of hashing salt|password.