[Gambas-user] Checksum for array and collection
Christof Thalhofer
chrisml at deganius.de
Thu Mar 16 08:38:20 CET 2023
Hi everybody,
I'm in search for a function that returns a checksum for an array or a
collection so that I have the possibility to check if the size or
content has changed.
Any ideas?
To create a checksum for a string is easy, for that I use
'Digest["sha1"](sCheckstring)'
with 'Digest' from gb.openssl.
But how create 'sCheckstring' which represents the content of the array?
A simple approach would be to use JSON.Encode($TheArray), but I wonder
if there are faster solutions?
Alles Gute
Christof Thalhofer
--
Dies ist keine Signatur
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230316/3279c156/attachment.sig>
More information about the User
mailing list