<machineKey validation="SHA1" validationKey="<64-byte key>"
What exactly does the validationKey do? Say I create a hash with SHA1. How does the validationKey play in to it?
Consider this code:
HMACSHA1 hashSha = new HMACSHA1(_validationKey);
byte[] ret = hashSha.ComputeHash(bytes, offSet, count);
return ret;
We are generating a new _validationkey, right? Then we take our bytes and hash them in ComputeHash. What is the point of the _validationKey? Do we need it when we validate the hash in some way?
And if it doesn't have any role in the process, then is the following true?
I have a byte array that's 80 bytes long, and the last 20 bytes consists of an asp.net sha1 hash, then the first 60 bytes, if sha1 hashed should match the last 20
validationKey plays no role in that?