Code to create a random validationKey and decryption for use in the machinekey element of the web.config.
Note: valid values for the decryptionKey length are 8 (for DES) or 24 (for 3DES), the resulting key is twice as long and for validationkey 20 to 64.
using
namespace
}
rng.GetBytes(buff);
hexString.Append(