Platforms to show: All Mac Windows Linux Cross-Platform

Back to SHA3MBS class.

SHA3MBS.Add(data as memoryblock)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 13.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds data to the hash calculation.

Using this method you can process huge amounts of data by passing them in small portions.

See also:

SHA3MBS.Add(data as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 13.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds data to the hash calculation.

Using this method you can process huge amounts of data by passing them in small portions.

See also:

SHA3MBS.Constructor(Rate as UInt32, capacity as UInt32)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 13.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The constructor.
Example
dim s as new SHA3MBS(1088, 512) // 256 bit

s.Add "Compute Me"
s.Add "Me too"

dim h as string = s.ResultText(256/8)

Break

See example project or SHA-3 documentation for useful values for Rate and Capacity.

SHA3MBS.Reset(Rate as UInt32, capacity as UInt32)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 13.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Resets the hash class so you can reuse it for another SHA-3 hash.

SHA3MBS.Result(outputLength as Integer) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 13.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The final hash in the requested length.

Returns the digest as binary string.
Before you show it to the user, pass it through EncodingToHexMBS.

SHA3MBS.ResultText(outputLength as Integer) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 13.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The final hash in the requested length.
Example
dim t as string = "The quick brown fox jumps over the lazy dog"
dim s as new SHA3MBS(1088, 512)

s.Add t
dim h as string = s.ResultText(32)

// shows 4d741b6f1eb29cb2a9b9911c82f56fa8d73b04959d3d9d222895df6c0b28aa15
MsgBox h

Returns the digest as text string with hexadecimal digits.

The items on this page are in the following plugins: MBS Encryption Plugin.


The biggest plugin in space...