Enum Class char_encoding
#include <tkcrypt/common.h>
Namespace: tkcrypt
Description
char_encoding enumerates character encodings for encrypted text.
Keychain encrypt/decrypt methods operate on bytes instead of strings. When encrypting a message, users must first convert the message string into a sequence of bytes. However, a byte sequence does not tell the recipient how to piece the original string back together. Therefore when encrypting, users tell the encrypt method what character encoding was used to generate the byte sequence. This information becomes part of the ciphertext itself.
The recipient then can use this information on decrypt to recreate the original message exactly as it is intended. This is especially helpful with cross-programming-language interoperability, since every language has its own native/preferred encoding and relying on the sender and receiver to have the same understanding is faulty.
Since: v2.0