aes

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const IterationCount = 65536
View Source
const KeyLength = 16
View Source
const SaltLength = 16

Variables

This section is empty.

Functions

func Decrypt

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

func Encrypt

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

Types

type CouldNotObtainRandomIVError

type CouldNotObtainRandomIVError struct {
	Msg string
}

func (*CouldNotObtainRandomIVError) Error

func (err *CouldNotObtainRandomIVError) Error() string

type CouldNotObtainRandomSaltError

type CouldNotObtainRandomSaltError struct {
	Msg string
}

func (*CouldNotObtainRandomSaltError) Error

type IncorrectPassphraseError

type IncorrectPassphraseError struct{}

func (*IncorrectPassphraseError) Error

func (err *IncorrectPassphraseError) Error() string

type InvalidAESKeyError

type InvalidAESKeyError struct {
	Msg string
}

func (*InvalidAESKeyError) Error

func (err *InvalidAESKeyError) Error() string

type InvalidEncryptedDataError

type InvalidEncryptedDataError struct {
	Msg string
}

func (*InvalidEncryptedDataError) Error

func (err *InvalidEncryptedDataError) Error() string

type InvalidIVError

type InvalidIVError struct {
	Msg string
}

func (*InvalidIVError) Error

func (err *InvalidIVError) Error() string

type InvalidPassphraseError

type InvalidPassphraseError struct {
	Msg string
}

func (*InvalidPassphraseError) Error

func (err *InvalidPassphraseError) Error() string

type InvalidSaltError

type InvalidSaltError struct {
	Msg string
}

func (*InvalidSaltError) Error

func (err *InvalidSaltError) Error() string

Jump to

Keyboard shortcuts

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