WALTER | Workable Algorithms for Location-aware Transmission, Encryption Response

StringExtensions..::..AsShaHash Method (String, HashMethod)

Generate hash of a given string using SHA methods

Namespace:  System
Assembly:  Walter (in Walter.dll)

Syntax


public static string AsShaHash(
	string plainText,
	HashMethod hashing
)

Parameters

plainText
Type: String
The text to compute the hash for
hashing
Type: System..::..HashMethod
the hashing method to use

Return Value

Hash value of a given string

Examples


You can generate a hash as a string from a string by converting the string and taking a number of bytes allowing you to test entegerety without leaking validation to reverse engineering teams
simple memory based memory validation
var bytes = json.AsShaHashBytes(HashMethod.SHA1);