crypto

package
v0.0.0-...-3ba1b7b Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(ciphertextBase64 string) ([]byte, error)

Decrypt decrypts the given ciphertext using AES-GCM.

func DecryptInt64

func DecryptInt64(in string) (int64, error)

func DecryptWithKey

func DecryptWithKey(ciphertextBase64 string, encryptionKey []byte) ([]byte, error)

DecryptWithKey decrypts the given ciphertext using AES-GCM.

func Encrypt

func Encrypt(plaintext []byte) (string, error)

Encrypt encrypts the given plaintext using AES-GCM.

func EncryptInt64

func EncryptInt64(in int64) (*string, error)

func EncryptInt64WithKey

func EncryptInt64WithKey(in int64, encryptionKey []byte) (*string, error)

EncryptWithKey encrypts the given plaintext using AES-GCM.

func EncryptWithKey

func EncryptWithKey(plaintext []byte, encryptionKey []byte) (string, error)

EncryptWithKey encrypts the given plaintext using AES-GCM.

func ParseRSAPublicKeyFromPEM

func ParseRSAPublicKeyFromPEM(keyPEM 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