package
0.0.0-20200625043019-ec8dcbf1eed9
Repository: https://github.com/kafkaesque-io/pubsub-function.git
Documentation: pkg.go.dev

# Functions

DecryptWithBase64 a 64encoded string with the default key AES.
EncryptWithBase64 encrypts a string with AES default key and returns 64encoded string.
GenTopicKey generates a random key in 24 char length.
NewRSA creates RSA keys pair.
NewRSAKeyPair creates a pair of RSA key for JWT token sign and verification.
NewRSAWithKeys with private and public keys.
RandKey generates a random key in n length.

# Constants

AesAlgo enum for AES.
RsaAlgo enum for RSA.

# Structs

AES struct implementation including encryption and decryption.
RSA struct implementation including encryption and decryption.
RSAKeyPair for JWT token sign and verification.

# Interfaces

AsymKeys asymmetric keys.
Decrypto decryption.
Encrypto encryption.