BuildSysPro.IBPSA.Utilities.Cryptographics.sha

# .BuildSysPro.IBPSA.Utilities.Cryptographics.sha

SHA1 encryption of a String

## 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.

#### Interface

>     pure function sha
>       extends Modelica.Icons.Function;
>       input String str "String to be encrypted";
>       output String sha1 "SHA1-encrypted string";
>     end sha;

## Revisions

- 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 2026-05-12T20:19:03Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos