reqtls is a lightweight TLS library and encryption/decryption library.
reqtls is a high-performance TLS and cryptographic foundation library built for the reqrio ecosystem, providing complete encryption, signing, certificate handling, and encoding capabilities. It focuses on security, scalability, and cross-platform support, making it suitable for building HTTPS clients, proxy services, certificate issuance systems, and custom secure communication protocols.
Encryption/decryption support:
- aes_ecb_128
- aes_ecb_192
- aes_ecb_256
- aes_cbc_128
- aes_cbc_192
- aes_cbc_256
- aes_crt_128
- aes_crt_192
- aes_crt_256
- aes_gcm_192
- aes_gcm_256
- aes_gcm_128
- aes_ofb_192
- aes_ofb_256
- aes_ofb_128
- des_ecb
- des_cbc
- rsa
- rc4
TLS supports TLS 1.2.
- aes-gcm-128
- aes-gcm-256
- chacha20_poly1305
- x25519
- secp256r1
- secp384r1
- secp521r1
CipherSuite
-
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
-
TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
-
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
-
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
-
TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
-
TLS_RSA_WITH_AES_128_GCM_SHA256
-
TLS_RSA_WITH_AES_256_GCM_SHA384
AlgorithmSignature
- RSA_PSS_RSAE_SHA256
- RSA_PSS_RSAE_SHA384
- RSA_PSS_RSAE_SHA512
- ECDSA_SECP256R1_SHA256
- ECDSA_SECP384R1_SHA384
- ECDSA_SECP521R1_SHA512
- RSA_PKCS1_SHA1
- RSA_PKCS1_SHA256
- RSA_PKCS1_SHA384
- RSA_PKCS1_SHA512
Hash support
- sha1
- sha224
- sha256
- sha385
- sha512
- hmac
Encoding support
- base64
- urlencoding
- hex
Compression Support
- gzip
- deflate
- br
- zstd
Cipher encryption/decryption examples
RsaCipher encryption/decryption example
Certificate Reading Example
Hash calculation example