encryption

package
v0.0.0-...-4c78285 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/.

Index

Constants

This section is empty.

Variables

EncKeys is the list of encryption keys used to encrypt and decrypt secrets

View Source
var RootKey string

RootKey is the key used to encrypt and decrypt encryption keys

Functions

func DecryptKeys

func DecryptKeys(ciphertext []byte) (string, error)

func DecryptSecret

func DecryptSecret(ciphertext []byte, keyId uuid.UUID) (string, error)

func EncryptKeys

func EncryptKeys(secret string) ([]byte, error)

func EncryptSecret

func EncryptSecret(secret string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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