security

package
v0.0.0-...-0447b3e Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2016 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Signature

func Signature(salt []byte, content ...[]byte) (hashsum []byte)

对 content(可以为多个) 做签名(hex后的结果).

@salt     hash 的盐(要足够长)
@content  待签名的 content
NOTE: content 的顺序不一样结果也不一样.

func SignatureEx

func SignatureEx(salt []byte, kvs map[string][]byte) (hashsum []byte)

对 map[string][]byte 的 values 做签名(hex后的结果).

@salt    hash 的盐(要足够长)
@kvs     key-value pairs

Types

This section is empty.

Jump to

Keyboard shortcuts

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