AES Advanced Encryption
Free AES advanced encryption API interface, supporting six encryption modes (GCM/CBC/ECB/CTR/OFB/CFB) and three padding methods (PKCS7/Zero/None). Flexibly configurable AES-256 encryption service, providing authenticated encryption and integrity protection. Suitable for secure data transmission, file encryption, API security and other scenarios. · Suitable for data transmission encryption, API secure communication, file encrypted storage, sensitive data protection, database field encryption, real-time stream encryption, privacy protection and other scenarios · AES Advanced Encryption
Free AES encryption API, GCM authenticated encryption, Multi-mode AES encryption, CBC encryption interface, AES-256 encryption, Data security API, Advanced encryption tool, Encryption mode selection, HEX output, Hexadecimal encryption, Base64 to HEX, Output format selection
POST /text/aes/encrypt-advanced - AES Advanced Encryption
Need a more flexible AES encryption solution? This advanced endpoint supports 6 encryption modes and 3 padding methods, allowing you to choose the most suitable encryption configuration for your specific scenario.
[!IMPORTANT]
GCM Mode Recommended
GCM mode provides authenticated encryption (AEAD), which not only encrypts data but also verifies data integrity, preventing ciphertext tampering. This is currently the most recommended encryption mode.
Overview
This is a comprehensive AES encryption endpoint supporting multiple encryption modes and padding methods. You can flexibly choose appropriate encryption configurations based on different security requirements and performance needs.
Supported Encryption Modes
- GCM Mode (Recommended): Authenticated encryption mode, providing integrity protection
- CBC Mode: Classic block encryption mode, requires IV and padding, suitable for file encryption
- CTR Mode: Stream cipher mode, no padding required, suitable for real-time data encryption
- OFB/CFB Mode: Stream cipher mode, no padding required, suitable for stream data encryption
- ECB Mode (Not recommended): Only for compatibility requirements
Supported Padding Methods
- PKCS7 Padding (Recommended): Standard padding method
- Zero Padding: Uses 0x00 bytes for padding
- None Padding: No padding, used for stream cipher modes
Output Format Support
- base64 (Default): Standard Base64 encoded output, suitable for transmission and storage
- hex: Hexadecimal encoded output, convenient for result verification
The outputformat parameter allows direct retrieval of HEX format ciphertext without additional conversion endpoint calls.
Parameter Description
- text: Plaintext text to be encrypted
- key: Encryption key (supports any length)
- mode: Encryption mode (optional, default GCM)
- padding: Padding method (optional, default PKCS7)
- iv: Custom IV (optional, Base64 encoded, 16 bytes)
- outputformat: Output format (optional, default base64)
Usage Examples
Example 1: HEX Format Output
Response example:
Example 2: Base64 Format Output (Default)
Response example:
Technical Specifications
- Encryption Algorithm: AES-256
- Encoding Format: Base64/HEX (input/output)
- IV Length: 16 bytes (128 bits)
[!NOTE]
About IV (Initialization Vector)
- GCM mode does not require IV
- CBC/CTR/OFB/CFB modes can optionally provide IV
- ECB mode does not use IV
- It is recommended to use different IVs for each encryption to ensure security
[!TIP]
About Output Format
- For verifying output results, it is recommended to use outputformat: "hex"
- Base64 format is more suitable for network transmission and API calls
- Both formats can be converted to each other, data is completely consistent