crypto

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(b []byte) (hash string)

func HashFile

func HashFile(fp *os.File) (hash string)

func HashFileVerify

func HashFileVerify(fp *os.File, hash string) bool

func HashVerify

func HashVerify(b []byte, hash string) bool

func SymmetricDecrypt

func SymmetricDecrypt(ciphertext []byte, key []byte) (cleartext []byte)

func SymmetricDecryptPassword

func SymmetricDecryptPassword(ciphertext []byte, pass string) (cleartext []byte)

func SymmetricEncrypt

func SymmetricEncrypt(cleartext []byte, key []byte) (ciphertext []byte)

func SymmetricEncryptPassword

func SymmetricEncryptPassword(cleartext []byte, pass string) (ciphertext []byte)

func SymmetricEncryptRandom

func SymmetricEncryptRandom(cleartext []byte) (ciphertext []byte, key []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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