encryption

package module
v0.0.0-...-35ca103 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: MIT Imports: 4 Imported by: 1

README

Go lang Encryption utility

go lang logo gopher

Simple package for Go language to make quick use of AES-GCM encryption.

Encrypt & Decrypt stuff using a key or a password that's stretched into a key.

Always open for criticism & any kind of feedback. ✌️

Follow me on Twitter: @ashfame

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptUsingKey

func DecryptUsingKey(key, data []byte) ([]byte, error)

func DecryptUsingPassword

func DecryptUsingPassword(password, salt, data []byte) ([]byte, error)

func DeriveKeyByStretching

func DeriveKeyByStretching(password, salt []byte) ([]byte, []byte, error)

func EncryptUsingKey

func EncryptUsingKey(key, data []byte) ([]byte, error)

func EncryptUsingPassword

func EncryptUsingPassword(password, data []byte) ([]byte, []byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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