package
0.0.0-20200422070036-0ae9f9e3b321
Repository: https://github.com/gobeam/golang-oauth.git
Documentation: pkg.go.dev
# Functions
BytesToPrivateKey converts given bytes to *rsa.PrivateKey.
BytesToPublicKey converts given bytes to *rsa.PublicKey.
DecryptWithPrivateKey decrypts given []byte, with private key.
EncryptWithPublicKey encrypts given []byte, with public key.
GenerateKeyPair generates a new key pair.
RandomKey generates random characters from RandomKeyCharacters.
SavePEMKey saves generated *rsa.PrivateKey to file.
SavePublicPEMKey saves generated *rsa.PublicKey to file.
# Constants
constants.
constants.
constants.
constants.
constants.
constants.
constants.
constants.
constants.
constants.
constants.
constants.
constants.
constants.
constants.
constants.
constants.
# Variables
RandomKeyCharacters is random key characters to choose from.