cryptostuff

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptChunk

func DecryptChunk(chunk []byte, secretKey [32]byte) []byte

func DecryptData added in v0.3.0

func DecryptData(encryptedFile string, outputFile string, password string)

func DeriveSecretKey

func DeriveSecretKey(password string, salt []byte) [32]byte

func EncryptChunk

func EncryptChunk(chunk []byte, secretKey [32]byte) []byte

func EncryptData added in v0.3.0

func EncryptData(oryginalFile string, outputFile string, password string, salt []byte)

func GenerateRandomBytes

func GenerateRandomBytes(len int) []byte

func GenerateRandomSalt

func GenerateRandomSalt() [8]byte

func GenerateRandomSecretKey

func GenerateRandomSecretKey() [32]byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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