cryptoWrapper

package
v0.0.0-...-cd32bbe Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2017 License: GPL-3.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBase64

func DecodeBase64(s string) []byte

func Decrypt

func Decrypt(key, text []byte) []byte

decrypt the text as a byte array with the key provided returns a byte array of the base64 decrypted text

func EncodeBase64

func EncodeBase64(b []byte) string

func Encrypt

func Encrypt(key, text []byte) []byte

encrypt the text with the key provided returns a byte array For reference: http://crypto.stackexchange.com/questions/2476/cipher-feedback-mode

func GetKeyFromUsernamePassword

func GetKeyFromUsernamePassword(username, password string) []byte

func HashPassword

func HashPassword(username, password string) string

func RandString

func RandString(n int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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