Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (20 sloc) 645 Bytes
using System;
using System.Runtime.Remoting.Metadata.W3cXsd2001;
using System.Security.Cryptography;
class Program
static void Main(string[] args)
using (var rijndael = new RijndaelManaged())
using (var hmacsha256 = new HMACSHA256())
Console.WriteLine(template, new SoapHexBinary(rijndael.Key), new SoapHexBinary(hmacsha256.Key));
Console.WriteLine("press any key to exit...");
const string template = @"<add key=""cookieauthentication.encryptionkey"" value=""{0}""/>
<add key=""cookieauthentication.validationkey"" value=""{1}""/>";
Jump to Line
Something went wrong with that request. Please try again.