Update website/docs/language/functions (#227)

Signed-off-by: Marcin Białoń <mbialon@spacelift.io>
This commit is contained in:
Marcin Białoń
2023-08-30 14:59:37 +02:00
committed by GitHub
parent 19c658c516
commit 554f303899
101 changed files with 312 additions and 388 deletions

View File

@@ -13,7 +13,7 @@ returns hexadecimal representation.
The given string is first encoded as UTF-8 and then the SHA256 algorithm is applied
as defined in [RFC 4634](https://tools.ietf.org/html/rfc4634). The raw hash is
then encoded with Base64 before returning. Terraform uses the "standard" Base64
then encoded with Base64 before returning. OpenTF uses the "standard" Base64
alphabet as defined in [RFC 4648 section 4](https://tools.ietf.org/html/rfc4648#section-4).
## Examples
@@ -25,7 +25,7 @@ uU0nuZNNPgilLlLX2n2r+sSE7+N6U4DukIj3rOLvzek=
## Related Functions
* [`filebase64sha256`](/terraform/language/functions/filebase64sha256) calculates the same hash from
* [`filebase64sha256`](/opentf/language/functions/filebase64sha256) calculates the same hash from
the contents of a file rather than from a string value.
* [`sha256`](/terraform/language/functions/sha256) calculates the same hash but returns the result
* [`sha256`](/opentf/language/functions/sha256) calculates the same hash but returns the result
in a more-verbose hexadecimal encoding.