pure functionsha
SHA1 encryption of a String
Extends from Modelica.Icons.Function (Icon for functions).
Information
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.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | str | String to be encrypted |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | sha1 | SHA1-encrypted string |
Revisions
-
December 11, 2021, by Michael Wetter:
Addedpuredeclaration 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.