hash

package
v0.0.52 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MPL-2.0 Imports: 3 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 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