package
0.0.0-20240519205015-155047955036
Repository: https://github.com/ciphercord/gophercord.git
Documentation: pkg.go.dev
# Functions
Decodes a plain text string back into an EncryptedMessage.
Decrypts s into plain text.
Converts an EncryptedMessage into an UnencryptedMessage.
The same as DecryptMessage but it assumes everything matches up.
Encodes an EncryptedMessage into a plain text string.
Encrypts s into an encrypted string.
Converts an UnencryptedMessage into an EncryptedMessage.
Takes string and hashes it to be 32 characters.
Packages up an UnencryptedMessage to string to be ready for sending.
Unpackages a string to UnencryptedMessage be ready for parsing.
# Constants
Advanced Encryption Standard (256-bit) / Galois/Counter Mode / Base64 (RAW).
Secure Hash Algorithm (256-bit) / Base64 (RAW) / Cut 32.
The major API version number.
# Variables
Cipher text is smaller than the nonce size.
Not a serious error message, this usually means either the key doesn't match or the message was packaged with a different client.
# Structs
A package of encrypted data that is ready to be sent out in the world.
UnencryptedMessage represents a package of unencrypted information that will later be encrypted.