rsa

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package rsa provides rsa encryption/decryption utilities

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(ciphertext []byte, privateKey ...[]byte) ([]byte, error)

Decrypt from rsa string

func DecryptBase64

func DecryptBase64(input []byte, privateKey ...[]byte) ([]byte, error)

DecryptBase64 decrypt from base64 string

func Encrypt

func Encrypt(input []byte, publicKey ...[]byte) ([]byte, error)

Encrypt to rsa string

func EncryptBase64

func EncryptBase64(input []byte, publicKey ...[]byte) ([]byte, error)

EncryptBase64 encrypt to base64 string

Types

This section is empty.

Jump to

Keyboard shortcuts

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