System.Web.Security.MachineKey.GetHashed C# (CSharp) Méthode

GetHashed() static private méthode

static private GetHashed ( string purposes ) : byte[]
purposes string
Résultat 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