cmd

package
v0.0.0-...-007f528 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecryptWithKey

func AesDecryptWithKey(aesKey, ciphertext []byte) ([]byte, error)

AesDecryptWithKey uses the give 32-bit key to decrypt plaintext.

func AesDecryptWithPassword

func AesDecryptWithPassword(password string, ciphertext []byte) ([]byte, error)

AesDecryptWithPassword uses the give password to generate an aes key and encrypt plaintext.

func AesEncryptWithKey

func AesEncryptWithKey(aesKey, plaintext []byte) ([]byte, error)

AesEncryptWithKey uses the give 32-bit key to encrypt plaintext.

func AesEncryptWithPassword

func AesEncryptWithPassword(password string, plaintext []byte) ([]byte, error)

AesEncryptWithPassword uses the give password to generate an aes key and decrypt plaintext.

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func NewAesKey

func NewAesKey() ([]byte, error)

NewAesKey generates a new 32-bit key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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