encrypt

package
v0.0.0-...-e8acdfa Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(key, data []byte, uniq bool) ([]byte, error)

func ReverseBytes

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

func ReverseString

func ReverseString(cryptoText string, keyString string) (plainTextString string, err error)

ReverseString takes two strings, cryptoText and keyString. cryptoText is the text to be decrypted and the keyString is the key to use for the decryption. The function will output the resulting plain text string with an error variable.

func String

func String(plainText string, keyString string, uniq bool) (cipherTextString string, err error)

String takes two string, plainText and keyString. plainText is the text that needs to be encrypted by keyString. The function will output the resulting crypto text and an error variable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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