MD5DigestMBS methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to MD5DigestMBS class.

MD5DigestMBS.clear

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 3.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Resets the MD5Digest object so that you can start with a new data stream.

MD5DigestMBS.Process(data as memoryblock)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 12.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Processes the given data.

See also:

MD5DigestMBS.Process(Data as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 3.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Processes the given data.
Example
dim f as FolderItem
dim b as BinaryStream
dim s as string
dim m as new MD5DigestMBS
dim lines(-1) as string

// process file part by part (big files)

f=SpecialFolder.Desktop.Child("test.jpg")
b=f.OpenAsBinaryFile(False)

while not b.eof
s=b.Read(1000000)
m.Process s
wend

lines.append EncodingToHexMBS(m.Value)+" using plugin with MD5DigestMBS"

dim d as new MD5Digest

f=SpecialFolder.Desktop.Child("test.jpg")
b=f.OpenAsBinaryFile(False)

while not b.eof
s=b.Read(1000000)
d.Process s
wend

lines.append EncodingToHexMBS(d.Value)+" using RB with MD5Digest"

// process file in one chunk (small files)

f=SpecialFolder.Desktop.Child("test.jpg")
b=f.OpenAsBinaryFile(False)

s=b.Read(b.Length)

lines.append EncodingToHexMBS(MD5MBS(s))+" using plugin with MD5MBS()"

f=SpecialFolder.Desktop.Child("test.jpg")
b=f.OpenAsBinaryFile(False)

s=b.Read(b.length)

lines.append EncodingToHexMBS(MD5(s))+" using RB with MD5()"

MsgBox Join(lines,EndOfLine)

See also:

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


💬 Ask a question or report a problem