cryp

package
v0.0.0-...-e1ab6f8 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2017 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Cryptographic utilities

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cryp

func Cryp(key, msg string) string

Encodes 'm' with key 'k'.

key   : Key for encoding
msg   : Message to encode
return: 'm' codified in B64 digits.

func Decryp

func Decryp(key, c string) string

Decodes 'c' using key 'k'. 'c' was codified with cryp().

key   : Key for decoding
c     : Text codified with cryp()
return: 'c' decoded.

func GenK

func GenK(lg int) string

GenK generates a B64 randon key of length 'lg'

func Key

func Key(key string, lg int) string

Returns 'k' codified in irreversible way, using 'lg' B64 digits.

key   : String to codify
lg    : Length of result
return: 'lg' B64 digits

Types

This section is empty.

Jump to

Keyboard shortcuts

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