|
dl
|
密码算法 更多...
#include "dl_buffer.h"类 | |
| struct | dl::Crypto::Aes256Key |
命名空间 | |
| namespace | dl |
| namespace | dl::Crypto |
| 加解密算法 | |
函数 | |
| void | dl::Crypto::EncryptXor (BufferView buf) |
| 快速异或加密 | |
| void | dl::Crypto::DecryptXor (BufferView buf) |
| std::wstring | dl::Crypto::EncodeHan256 (BufferView buf) |
| 中文映射编码 | |
| bool | dl::Crypto::DecodeHan256 (const std::wstring &str, Buffer &buf) |
| 中文映射编码 | |
| uint32_t | dl::Crypto::HashCrc32 (BufferView buf, uint32_t crc=0) |
| crc32哈希 | |
| std::string | dl::Crypto::EncodeBase64 (BufferView buf) |
| base64编码 | |
| bool | dl::Crypto::DecodeBase64 (std::string_view str, Buffer &buf) |
| base64解码 | |
| Buffer | dl::Crypto::HashMd5 (BufferView buf) |
| md5哈希 | |
| Buffer | dl::Crypto::HashSha256 (BufferView buf) |
| sha256哈希 | |
| Buffer | dl::Crypto::HashSha512 (BufferView buf) |
| sha512哈希 | |
| Buffer | dl::Crypto::HashBlake2b (BufferView buf) |
| blake2b哈希 | |
| Aes256Key | dl::Crypto::GenerateKeyAes256 () |
| 生成Aes256密钥 | |
| Buffer | dl::Crypto::EncryptAes256 (BufferView buf, const Aes256Key &key) |
| Aes256加密 | |
| Buffer | dl::Crypto::DecryptAes256 (BufferView buf, const Aes256Key &key) |
| Aes256解密 | |