System.Web.Security.MachineKey.GetHashed C# (CSharp) Method

GetHashed() static private method

static private GetHashed ( string purposes ) : byte[]
purposes string
return byte[]
		static byte[] GetHashed (string purposes)
		{
			using (var hash = SHA512.Create ()) {
				var bytes = Encoding.UTF8.GetBytes (purposes);
				return hash.ComputeHash (bytes, 0, bytes.Length);
			}
		}
#endif