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

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

Generate hased bytes based on a string

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

Syntax


public static byte[] AsShaHashBytes(
	string plainText,
	HashMethod hashing,
	int byteCount,
	AsHashSubsetLocation location
)

Parameters

plainText
Type: String
the string to convert
hashing
Type: System..::..HashMethod
the hashing method to use
byteCount
Type: Int32
the number of bytes to use
location
Type: Walter..::..AsHashSubsetLocation
the location from where to get the bytes from

Return Value

bytes based on the hash of a string

Examples


You can generate a hash 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.SHA256, 16);