Platforms to show: All Mac Windows Linux Cross-Platform
Back to SHA512MBS class.
SHA512MBS.Hash(data as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Encryption and Hash | MBS Encryption Plugin | 12.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns the digest as binary string.
Before you show it to the user, pass it through EncodingToHexMBS.
SHA512MBS.HashFile(file as FolderItem, Hex as boolean = true) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Encryption and Hash | MBS Encryption Plugin | 14.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Plugin will start a preemptive thread to read in file and process all data in chunks.
Returns hash on success or empty string on failure. May raise OutOfMemoryException or IOException.
This function works best if called from a thread.
If hex is true, the result is encoded as hex string.
The work is performed on a preemptive thread, so this function does not block the application and can yield time to other Xojo threads. Must be called in a Xojo thread to enjoy benefits. If called in main thread will block, but keep other background threads running.
If you run several threads calling MT methods, you can get all CPU cores busy while main thread shows GUI with progress window.
SHA512MBS.HashText(data as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Encryption and Hash | MBS Encryption Plugin | 12.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns the digest as text string with hexadecimal digits.
SHA512MBS.HMAC(key as string, data as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Encryption and Hash | MBS Encryption Plugin | 19.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The items on this page are in the following plugins: MBS Encryption Plugin.