crypt

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(data []byte, passphrase string) (b []byte, err error)

Decrypt decrypts byte array

func DecryptString added in v1.7.8

func DecryptString(encrypted string, passPhrase string) (decrypted string, err error)

DecryptString decrypts string

func Encrypt

func Encrypt(data []byte, passphrase string) (b []byte, err error)

Encrypt encrypts byte array

func EncryptString added in v1.7.8

func EncryptString(decrypted string, passPhrase string) (encrypted string, err error)

EncryptString encrypts string

Types

This section is empty.

Jump to

Keyboard shortcuts

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