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

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

Generate hased bytes based on a string

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

Syntax


public static byte[] AsShaHashBytes(
	string plainText,
	HashMethod hashing
)

Parameters

plainText
Type: String
the string to convert
hashing
Type: System..::..HashMethod
the hashing method to use

Return Value

bytes based on the hash of a string

Examples


You can generate a hash bytes 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);