crypto

package
v0.0.0-...-3b39f08 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package crypto implements helpers related to cryptography.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomBytes

func GenerateRandomBytes(size int) []byte

GenerateRandomBytes returns random bytes.

func GenerateRandomString

func GenerateRandomString(size int) string

GenerateRandomString returns a random string.

func Hash

func Hash(value string) string

Hash returns a SHA-256 checksum of a string.

func HashFromBytes

func HashFromBytes(value []byte) string

HashFromBytes returns a SHA-256 checksum of the input.

Types

This section is empty.

Jump to

Keyboard shortcuts

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