crypt_tools

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptAESGCM

func DecryptAESGCM(encryptedMessage []byte, key []byte) (decryptedMessage []byte, err error)

func EncryptAESGCM

func EncryptAESGCM(decryptedMessage []byte, key []byte) (encryptedMessage []byte, err error)

func GenerateRSAKey added in v0.0.8

func GenerateRSAKey() (privateKey *rsa.PrivateKey, err error)

func RSAPrivateKeyFromBase64 added in v0.0.8

func RSAPrivateKeyFromBase64(privateKey64 string) (privateKey *rsa.PrivateKey, err error)

func RSAPrivateKeyFromDer added in v0.0.9

func RSAPrivateKeyFromDer(privateKeyDer []byte) (privateKey *rsa.PrivateKey, err error)

func RSAPrivateKeyFromHex added in v0.0.8

func RSAPrivateKeyFromHex(privateKey64 string) (privateKey *rsa.PrivateKey, err error)

func RSAPrivateKeyFromPem added in v0.0.8

func RSAPrivateKeyFromPem(privateKeyPem string) (privateKey *rsa.PrivateKey, err error)

func RSAPrivateKeyToBase64 added in v0.0.8

func RSAPrivateKeyToBase64(privateKey *rsa.PrivateKey) (privateKey64 string)

func RSAPrivateKeyToDer added in v0.0.9

func RSAPrivateKeyToDer(privateKey *rsa.PrivateKey) (privateKeyDer []byte)

func RSAPrivateKeyToHex added in v0.0.8

func RSAPrivateKeyToHex(privateKey *rsa.PrivateKey) (privateKey64 string)

func RSAPrivateKeyToPem added in v0.0.8

func RSAPrivateKeyToPem(privateKey *rsa.PrivateKey) (privateKeyPem string)

func RSAPublicKeyFromBase64 added in v0.0.8

func RSAPublicKeyFromBase64(publicKey64 string) (publicKey *rsa.PublicKey, err error)

func RSAPublicKeyFromDer added in v0.0.9

func RSAPublicKeyFromDer(publicKeyDer []byte) (publicKey *rsa.PublicKey, err error)

func RSAPublicKeyFromHex added in v0.0.8

func RSAPublicKeyFromHex(publicKey64 string) (publicKey *rsa.PublicKey, err error)

func RSAPublicKeyFromPem added in v0.0.8

func RSAPublicKeyFromPem(publicKeyPem string) (publicKey *rsa.PublicKey, err error)

func RSAPublicKeyToBase64 added in v0.0.8

func RSAPublicKeyToBase64(publicKey *rsa.PublicKey) (publicKey64 string)

func RSAPublicKeyToDer added in v0.0.9

func RSAPublicKeyToDer(publicKey *rsa.PublicKey) (publicKeyDer []byte)

func RSAPublicKeyToHex added in v0.0.8

func RSAPublicKeyToHex(publicKey *rsa.PublicKey) (publicKey64 string)

func RSAPublicKeyToPem added in v0.0.8

func RSAPublicKeyToPem(publicKey *rsa.PublicKey) (publicKeyPem string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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