encryption

package
v1.106.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt added in v1.66.0

func Decrypt(ciphertext string, key string) (string, error)

func DecryptStruct added in v1.70.0

func DecryptStruct(encryptedStruct string, key string, object any) error

func Encrypt added in v1.66.0

func Encrypt(plaintext string, key string) (string, error)

func EncryptStruct added in v1.70.0

func EncryptStruct(object any, key string) (string, error)

func GetFirebaseCredentialsEncryptionKey added in v1.97.0

func GetFirebaseCredentialsEncryptionKey(secretID string, isDebug bool) (string, error)

func GetJWTEncryptionKey added in v1.97.0

func GetJWTEncryptionKey(secretID string, isDebug bool) (string, error)

func Hash

func Hash(input string, key string) string

func Md5HashString

func Md5HashString(bytesToHash []byte) string

Types

type EncryptionKeys added in v1.97.0

type EncryptionKeys struct {
	FirebaseEncryptionKey string `json:"firebase_encryption_key"`
	JWTEncryptionKey      string `json:"jwt_encryption_key"`
}

func GetEncryptionKeys added in v1.97.0

func GetEncryptionKeys(secretID string, isDebug bool) (EncryptionKeys, error)

type EncryptionKeysSecret added in v1.97.0

type EncryptionKeysSecret struct {
	EncryptionKeysValue string `json:"EncryptionKeys"`
}

Jump to

Keyboard shortcuts

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