package
0.0.0-20250218190523-b123c3ebbebe
Repository: https://github.com/paulwaldo/building-microservices-with-go.git
Documentation: pkg.go.dev

# Functions

DecryptDataWithPrivateKey decrypts the given data with the private key.
DecryptLargeMessageWithPrivateKey decrypts the given base64 encoded message by decrypting the base64 encoded key with the rsa private key and then using the result to decrupt the ciphertext.
DecryptMessageWithPrivateKey decrypts the given base64 encoded ciphertext with the private key and returns plain text.
EncryptDataWithPublicKey encrypts the given data with the public key.
EncryptLargeMessageWithPublicKey encrypts the given message by randomly generating a cipher.
EncryptMessageWithPublicKey encrypts the given string and retuns the encrypted result base64 encoded.