crypt

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptAES

func DecryptAES(data []byte, passphrase string) ([]byte, error)

DecryptAES will decrypt the data in buffer. For a key it will use md5 hash from the passphrase provided.

func EncryptAES

func EncryptAES(data []byte, passphrase string) ([]byte, error)

EncryptAES will encrypt the data in buffer and return encrypted result. For a key it will use md5 hash from the passphrase provided.

func MD5

func MD5(key string) (string, error)

MD5 returns an md5 hash for a given string

Types

This section is empty.

Jump to

Keyboard shortcuts

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