quickcypher

package module
v0.0.0-...-a11fb3e Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: MIT Imports: 5 Imported by: 0

README

Source

I created this package to allow me a quick go get -u in my projects

Usage

go get -u github.com/gabrielpsilva/quickcypher

Encrypt/Decrypt

Encrypt(plainstring, keystring string) []byte
Decrypt(cipherd []byte, keystring string) string
Credits to: josephspurrier

https://gist.github.com/josephspurrier/8304f09562d81babb494

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64AndDecrypt

func Base64AndDecrypt(b64string, keystring string) string

Base64AndDecrypt will make a cipher in base64 readable

func Decrypt

func Decrypt(cipherd []byte, keystring string) string

Decrypt will make a cipher readable

func Encrypt

func Encrypt(plainstring, keystring string) []byte

Encrypt will cipher a readable

func EncryptAndBase64

func EncryptAndBase64(plainstring, keystring string) string

EncryptAndBase64 will cipher a readable and return in base64

Types

This section is empty.

Jump to

Keyboard shortcuts

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