From 2ca4f97713ac1db6ab59eae46ca21167219d675d Mon Sep 17 00:00:00 2001 From: CJ <105300705+cjobermaier@users.noreply.github.com> Date: Fri, 16 Aug 2024 17:32:37 -0500 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Tu Nguyen --- website/docs/language/functions/filesha1.mdx | 2 +- website/docs/language/functions/filesha256.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/language/functions/filesha1.mdx b/website/docs/language/functions/filesha1.mdx index 27727e6324..7ae46bb0df 100644 --- a/website/docs/language/functions/filesha1.mdx +++ b/website/docs/language/functions/filesha1.mdx @@ -10,7 +10,7 @@ This topic provides reference information about the `filesha1` function, which c The `filesha1` is a variant of [`sha1`](/terraform/language/functions/sha1) that hashes the contents of a given file rather than a literal string. -Use the `filesha1` function instead of wrapping the `file` function in a `sha1` function, for example `sha1(file(filename))`, because [`file`](/terraform/language/functions/file) accepts only UTF-8 text. As a result, you cannot use `sha1(file(filename))` to create hashes for binary files. +Use the `filesha1` function instead of wrapping the `file` function in a `sha1` function, for example `sha1(file(filename))`, because [`file`](/terraform/language/functions/file) accepts only UTF-8 text. As a result, you cannot use `sha1(file(filename))` to create hashes for binary files. !> **Security warning**: This hashing function is susceptible to collision attacks. Before using this function for anything security-sensitive, review relevant literature to understand the security implications. diff --git a/website/docs/language/functions/filesha256.mdx b/website/docs/language/functions/filesha256.mdx index 62b4239be3..2be52d37b3 100644 --- a/website/docs/language/functions/filesha256.mdx +++ b/website/docs/language/functions/filesha256.mdx @@ -14,7 +14,7 @@ This topic provides reference information about the `filesha256` function, which The `filesha256` is a variant of [`sha256`](/terraform/language/functions/sha256) that hashes the contents of a given file rather than a literal string. -Use the `filesha1` function instead of wrapping the `file` function in a `sha1` function, for example `sha1(file(filename))`, because [`file`](/terraform/language/functions/file) accepts only UTF-8 text. As a result, you cannot use `sha1(file(filename))` to create hashes for binary files. +Use the `filesha1` function instead of wrapping the `file` function in a `sha1` function, for example `sha1(file(filename))`, because [`file`](/terraform/language/functions/file) accepts only UTF-8 text. As a result, you cannot use `sha1(file(filename))` to create hashes for binary files. ## Syntax