If I use HMACSHA256.ComputeHash in my password encoding scheme and generate password hashes on one server then later need to migrate to a different server, will my hashes still encode the same? I recall seeing something about machineKey settings being involved in cryptography operations, but I’m not entirely familiar.
If I use HMACSHA256.ComputeHash in my password encoding scheme and generate password hashes on
Share
Whether or not they will still encode the same depends on how you create the HMACSHA256 object. It will use whatever key you instantiate it with to do the hashes or, if you don’t specify a key, it will generate a random key. As long as you pass it the same key, it will generate the same hashes.