hash

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

hash.go This package contains shared / common hash functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashAndUpdateSensitiveField

func HashAndUpdateSensitiveField(d *schema.ResourceData, fieldKey string, configValue string) error

HashAndUpdateSensitiveField hashes the given sensitive value and updates the Terraform state if the hash is different.

func HashString added in v0.0.55

func HashString(s string) string

HashString calculates the SHA-256 hash of a string and returns it as a hexadecimal string.

func HashValue

func HashValue(plaintext string) string

HashValue takes a plaintext string and returns a SHA-256 hash of it as a hex string.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL