Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

SHA3MBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Encryption and Hash MBS Encryption Plugin 13.0 Yes Yes Yes Yes No
Function: A class to calculate SHA-3 hashes.
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

Feedback, Comments & Corrections

  • 6 methods
    • method Add(data as memoryblock)
    • method Add(data as string)
    • method Constructor(Rate as UInt32, capacity as UInt32)
    • method Reset(Rate as UInt32, capacity as UInt32)
    • method Result(outputLength as Integer) as string
    • method ResultText(outputLength as Integer) as string
  • 2 shared methods
    • shared method Hash(data as string, Rate as UInt32, capacity as UInt32, outputLength as Integer) as string
    • shared method HashText(data as string, Rate as UInt32, capacity as UInt32, outputLength as Integer) as string

This class has no sub classes.

Some examples which use this class:


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


SHA256MBS   -   SHA512MBS




Links
MBS Xojo blog