Platforms to show: All Mac Windows Linux Cross-Platform

Back to DigestMBS class.

DigestMBS.BlockSize as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries block size.
Example
Var d as DigestMBS = DigestMBS.DigestByName("md5")
MsgBox str(d.BlockSize)

(Read only property)

DigestMBS.Name as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Encryption and Hash MBS Encryption Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The name of the digest engine.

(Read only property)

DigestMBS.Size as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries size of digest.
Example
Var d as DigestMBS = DigestMBS.SHA512
MsgBox str(d.Size)

(Read only property)

DigestMBS.XOFLen as Integer   New in 26.1

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Encryption and Hash MBS Encryption Plugin 26.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The digest length for extendable output functions.
Example
Var d As DigestMBS = DigestMBS.shake128

Var s As String = "The quick brown fox jumps over the lazy dog"
d.Process s

// we default to 16 bytes
Var hash1 As String = d.FinalText
// F4202E3C5852F9182A0430FD8144F0A7

// but you can do it again and ask for 32 bytes
d = DigestMBS.shake128

d.Process s
d.XOFLen = 32

Var hash2 As String = d.FinalText
// F4202E3C5852F9182A0430FD8144F0A74B95E7417ECAE17DB0F8CFEED0E3E66E

Break

For backwards compatibility reasons the default xoflen length for SHAKE-128 is 16 (bytes) which results in a security strength of only 64 bits. To ensure the maximum security strength of 128 bits, the xoflen should be set to at least 32.

For backwards compatibility reasons the default xoflen length for SHAKE-256 is 32 (bytes) which results in a security strength of only 128 bits. To ensure the maximum security strength of 256 bits, the xoflen should be set to at least 64.
(Read and Write property)

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


The biggest plugin in space...