mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
Update website/docs/language/functions (#227)
Signed-off-by: Marcin Białoń <mbialon@spacelift.io>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user