Generate machine keys with F#
If you want to release software often, as scrum advises, you need to take special care about those releases. I had recently a problem where releasing changes to an ASP.NET website would cause it to generate new machine key and invalidating ViewState for all visitors that were using some sort of form on the website. The solution to that is of course specifying the machine key in web.config to make sure that it doesn't change when the application pool refreshes.
This is how I use F# to generate the keys.
printfn "<machineKey validationKey="%s" decryptionKey="%s" validation="SHA1" decryption="AES" />" machineKey.sha1 machineKey.aes
And the result is...
Dump this in your web.config and you're good to go. Just don't forget to encrypt the configuration file before deployment to avoid the keys getting in the wrong hands.