Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

SHA256MBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Encryption and Hash MBS Encryption Plugin 11.3 Yes Yes Yes Yes No
Function: A class to calculate SHA-256 hashes.
Example:
dim s3 as string = SHA256MBS.Hash("")
dim e3 as string = EncodingToHexMBS(s3)
dim e4 as string = SHA256MBS.HashText("")

if e3 <> "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" then
break
elseif e3 <> e4 then
break
else
MsgBox "OK"
end if

Feedback, Comments & Corrections

  • 4 methods
  • 4 shared methods
    • shared method Hash(data as string) as string
    • shared method HashFile(file as FolderItem, Hex as boolean = true) as string
    • shared method HashText(data as string) as string
    • shared method HMAC(key as string, data as string) 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.


SHA1MBS   -   SHA3MBS




Links
MBS FileMaker blog