crypto

package
v0.0.0-...-473e0bf Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePasswd

func GeneratePasswd(password, userSalt string, iterations int) (cryptoPasswd string)

Write by zhangtao<ztao8607@gmail.com> . In 2018/5/7. GeneratePasswd 生成与Django兼容的加密字符串

func GeneratePrivateKey

func GeneratePrivateKey(bitSize int) (*rsa.PrivateKey, []byte, error)

GeneratePrivateKey 生成私钥 返回原生私钥数据, 和文本化后的私钥数据

func GeneratePublicKey

func GeneratePublicKey(privatekey *rsa.PublicKey) ([]byte, error)

GeneratePublicKey 基于私钥生成相对应的公钥

Types

This section is empty.

Jump to

Keyboard shortcuts

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