Platforms to show: All Mac Windows Linux Cross-Platform
Back to MD5DigestMBS class.
MD5DigestMBS.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.
MD5DigestMBS.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 | 13.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
MD5DigestMBS.MD5(data as memoryblock) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Encryption and Hash | MBS Encryption Plugin | 12.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
MD5DigestMBS.MD5(data as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Encryption and Hash | MBS Encryption Plugin | 11.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Same as the MD5 function in RB5.
See also:
MD5DigestMBS.MD5String(data as memoryblock) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Encryption and Hash | MBS Encryption Plugin | 12.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
MD5DigestMBS.MD5String(data as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Encryption and Hash | MBS Encryption Plugin | 11.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
The items on this page are in the following plugins: MBS Encryption Plugin.