rsa

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenRsaKey

func GenRsaKey() error

GenRsaKey 生成非对称加密的密钥文件

func RsaDecrypt

func RsaDecrypt(cryptText string, pubKey, priKey []byte) (string, error)

RsaDecrypt 非对称解密

func RsaEncrypt

func RsaEncrypt(plainText, pubKey []byte) (string, error)

RsaEncrypt 非对称加密

Types

This section is empty.

Jump to

Keyboard shortcuts

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