rsa

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: MIT Imports: 8 Imported by: 0

README

xxx

介绍
  1. xxxx
  2. xxxx
  3. xxxx
安装教程

go get github.com/jageros/hawox

使用例子
package main

import (
	"fmt"
	"github.com/jageros/hawox/xxx"
)

func main() {
	/*
	xxxxx
	xxxxx
	xxxxx
	*/
}
使用说明
  1. xxxx
  2. xxxx
  3. xxxx

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(cipher []byte, privateKey *rsa.PrivateKey) ([]byte, error)

Decrypt RSA私钥解密

func DefaultDecrypt

func DefaultDecrypt(cipher []byte) ([]byte, error)

func DefaultEncrypt

func DefaultEncrypt(plaintext []byte) ([]byte, error)

func Encrypt

func Encrypt(plaintext []byte, publicKey *rsa.PublicKey) ([]byte, error)

Encrypt RSA公钥加密

func GenRsaKey

func GenRsaKey(path string, bitNum int)

func ReadPrivateKey

func ReadPrivateKey(path string) (*rsa.PrivateKey, error)

func ReadPublicKey

func ReadPublicKey(path string) (*rsa.PublicKey, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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