package
0.13.0
Repository: https://github.com/ibrt/golang-utils.git
Documentation: pkg.go.dev

# Functions

MustDecryptAES decrypts a ciphertext encrypted by MustEncryptAES.
MustEncryptAES encrypts the given plaintext using symmetric AES, GCM mode.
MustGenerateRandomAESKey generates a random AES key.
MustPEMToRSAPrivateKey is like [PEMToRSAPrivateKey] but panics on error.
MustPEMToRSAPublicKey is like [PEMToRSAPublicKey] but panics on error.
PEMToRSAPrivateKey tries to find and parse a [*rsa.PrivateKey] in the given PEM file.
PEMToRSAPublicKey tries to find and parse a [*rsa.PublicKey] in the given PEM file.
RSAPrivateKeyToPEM encodes a [*rsa.PrivateKey] to PEM format.
RSAPublicKeyToPEM encodes a [*rsa.PublicKey] to PEM format.

# Constants

AES constants.
AES constants.
AES constants.