lib

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2017 License: BSD-3-Clause Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESEncrypt

func AESEncrypt(key, text []byte) (string, string, error)

AESEncrypt https://golang.org/src/crypto/cipher/example_test.go Returns base64 encoded ciphertext and base64 encoded IV Not returning both (iv:ciphertext) as includes too much js/vbs to detach

func Base64Encode

func Base64Encode(data []byte) string

Base64Encode basic wrapper around base64 encoding

func GenerateHttpKey

func GenerateHttpKey(url, userAgent string) (string, error)

GenerateHttpKey reaches out to url, hashes the body and returns the sha512 hash (first 32 chars)

func GenerateSHA512

func GenerateSHA512(s string) string

GenerateSHA512 takes a string, generates a SHA512 hash and sends back as hex string

Types

This section is empty.

Jump to

Keyboard shortcuts

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