SHA1 encryption of a String
This function takes a String input and, using an external function written in C,
outputs its SHA1 encryption. The input string can be of any length, though the output
will always be 40 hexadecimal characters.
pure function sha
extends Modelica.Icons.Function;
input String str "String to be encrypted";
output String sha1 "SHA1-encrypted string";
end sha;
-
December 11, 2021, by Michael Wetter:
Added pure
declaration for MSL 4.0.0.
-
May 31, 2018 by Alex Laferrière:
Changed the encryption to a SHA1 with a string array input (rather than a file
input).
-
January 21, 2018 by Filip Jorissen:
Revised sha implementation to avoid buffer overflow in borefield.
See
#755.
Generated at 2025-03-12T19:48:30Z
by OpenModelicaOpenModelica 1.24.5 using GenerateDoc.mos