gosalty

package module
v0.0.0-...-5664235 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 7 Imported by: 1

README

AES crypto with CBC mode with salt in Golang

Example

See salty_test.go for example.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(encoded, password []byte) ([]byte, error)

func Encode

func Encode(plain, password []byte) ([]byte, error)

func SaltyDecode

func SaltyDecode(content, password, salt []byte) ([]byte, error)

func SaltyDecodeFromBase64

func SaltyDecodeFromBase64(encoded string, password, salt []byte) ([]byte, error)

func SaltyDecodeFromHexString

func SaltyDecodeFromHexString(encoded string, password, salt []byte) ([]byte, error)

func SaltyEncode

func SaltyEncode(plain, password, salt []byte) ([]byte, error)

func SaltyEncodeToBase64

func SaltyEncodeToBase64(plain, password, salt []byte) (string, error)

func SaltyEncodeToHexString

func SaltyEncodeToHexString(plain, password, salt []byte) (string, error)

func To32BytesHash

func To32BytesHash(slices ...[]byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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