SHA512ComputeHash, SHA256ComputeHash and BitConverterToString
No edit summary
No edit summary
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
As described on [[SysSingleton GetSystemUrl|GetSystemUrl]] you can use a few predefined methods exposed on SysSingleton.
<message>Write the content here to display this box</message>
As described on [[Documentation:SysSingleton GetSystemUrl|GetSystemUrl]], you can use a few predefined methods exposed on SysSingleton. These methods are implemented in Turnkey to allow for common things without needing to use CodeDress (that will work around anything).


These method are implemented in Turnkey to allow for common things without the need to use CodeDress (that will work around anything)
<code><span class="col-black">'''BitConverterToString(bytes:Blob):String'''</span></code> - given a byte array will return string like 01-A0-FF... for the bytes
BitConverterToString(bytes:Blob):String  - given a byte array will return string like 01-A0-FF... for the bytes


SHA512ComputeHash(bytes:Blob):Blob - given a byte array will return SHA512 checksum in bytes
<code><span class="col-black">'''SHA512ComputeHash(bytes:Blob):Blob'''</span></code> - given a byte array will return SHA512 checksum in bytes


SHA256ComputeHash(bytes:Blob):Blob - given a byte array will return SHA256 checksum in bytes
<code><span class="col-black">'''SHA256ComputeHash(bytes:Blob):Blob'''</span></code> - given a byte array will return SHA256 checksum in bytes[[File:2022-03-21 23h07 48.png|none|thumb]]
[[File:2022-03-21 23h07 48.png|none|thumb|x]]
[[Category:MDriven Turnkey]]
[[Category:MDriven Turnkey]]
{{Edited|July|12|2025}}

Latest revision as of 05:45, 24 February 2025

This page was created by Hans.karlsen@mdriven.net on 2022-03-21. Last edited by Stephanie@mdriven.net on 2025-02-24.

As described on GetSystemUrl, you can use a few predefined methods exposed on SysSingleton. These methods are implemented in Turnkey to allow for common things without needing to use CodeDress (that will work around anything).

BitConverterToString(bytes:Blob):String - given a byte array will return string like 01-A0-FF... for the bytes

SHA512ComputeHash(bytes:Blob):Blob - given a byte array will return SHA512 checksum in bytes

SHA256ComputeHash(bytes:Blob):Blob - given a byte array will return SHA256 checksum in bytes

2022-03-21 23h07 48.png