utilities

package
v0.0.0-...-6ccb123 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESGCMEncrypt

func AESGCMEncrypt(key, data, additionalData []byte) (iv, encrypted, tag []byte, err error)

func EncryptPassword

func EncryptPassword(password, pubKeyEncoded string, pubKeyVersion int, t string) (string, error)

func RSADecodePublicKeyFromBase64

func RSADecodePublicKeyFromBase64(pubKeyBase64 string) (*rsa.PublicKey, error)

func RSAPublicKeyPKCS1Encrypt

func RSAPublicKeyPKCS1Encrypt(publicKey *rsa.PublicKey, data []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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