hiboot: hidevops.io/hiboot/pkg/utils/crypto/rsa Index | Files

package rsa

import "hidevops.io/hiboot/pkg/utils/crypto/rsa"

Package rsa provides rsa encryption/decryption utilities

Index

Package Files

rsa.go

func Decrypt Uses

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

Decrypt from rsa string

func DecryptBase64 Uses

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

DecryptBase64 decrypt from base64 string

func Encrypt Uses

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

Encrypt to rsa string

func EncryptBase64 Uses

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

EncryptBase64 encrypt to base64 string

Package rsa imports 6 packages (graph) and is imported by 2 packages. Updated 2019-04-02. Refresh now. Tools for package owners.