cypher

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeCookie

func DecodeCookie(cypher core.Cypher, data string) (string, error)

func EncodeCookie

func EncodeCookie(cypher core.Cypher, data string) (string, error)

func GenerateRandomPass

func GenerateRandomPass() []byte

func GenerateRandomPassAsString

func GenerateRandomPassAsString() string

func New

func New() core.Cypher

func NewWithPassword

func NewWithPassword(password []byte) core.Cypher

func NewWithPasswordAsString

func NewWithPasswordAsString(password string) core.Cypher

Types

type AES256

type AES256 struct {
	// contains filtered or unexported fields
}

func (AES256) Decrypt

func (aes AES256) Decrypt(data []byte) ([]byte, error)

func (AES256) Encrypt

func (aes AES256) Encrypt(data []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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