encrypt

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AESCipher

type AESCipher struct {
	GCM cipher.AEAD
	// contains filtered or unexported fields
}

func NewAESCipher

func NewAESCipher(key_str string) (*AESCipher, error)

Initilze AES/GCM for both encrypting and decrypting.

func (*AESCipher) Decrypt

func (ci *AESCipher) Decrypt(cipherstring string, base64_encoded bool) (plainstring string, err error)

func (*AESCipher) Encrypt

func (ci *AESCipher) Encrypt(plaintext []byte, base64_encoded bool) (cipherstring string)

Jump to

Keyboard shortcuts

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