SM4 Calculator

Encrypt and decrypt data using the SM4 (Chinese National Standard) symmetric block cipher algorithm.

Request Feature / Support
14,168+
Total Calculations Run
< 15ms
Browser Execution Speed
100%
Client-Side Privacy
4.9 / 5.0
User Satisfaction
AI Web Tool Generator

Build Your Own Custom Web Calculator in Seconds

Type what tool or calculator you need below. Our AI will build it instantly for your site.

Popular ideas:
100% FREE • No Credit Card Required

عن هذه الأداة

This SM4 online calculator provides a complete implementation of the SM4 encryption algorithm (also known as SMS4). SM4 is a 128-bit block cipher standardized by the Chinese government for commercial applications. The tool supports both encryption and decryption operations with ECB and CBC modes, along with PKCS7 padding. Simply enter your 128-bit key (32 hex characters), plaintext or ciphertext, select the operation mode, and get instant results. All calculations happen locally in your browser for maximum security.

كيفية الاستخدام

  1. Enter a 128-bit key in hexadecimal format (32 characters like '0123456789ABCDEFFEDCBA9876543210').
  2. Enter the plaintext (for encryption) or ciphertext (for decryption) in hexadecimal format.
  3. Select the operation: Encryption or Decryption.
  4. Choose the mode: ECB (Electronic Codebook) or CBC (Cipher Block Chaining).
  5. If using CBC mode, enter an initialization vector (IV) in hexadecimal format.
  6. Click the 'Calculate' button to perform the SM4 operation.
  7. View the results in the output section below.
How to use sm4 online calculator

Frequently Asked Questions

اعثر على إجابات سريعة

What is SM4?
SM4 is a 128-bit block cipher encryption algorithm standardized by the Chinese State Cryptography Administration. It's used for commercial encryption in China and is similar to AES in security level.
What key format should I use?
The key must be exactly 128 bits, represented as 32 hexadecimal characters (0-9, A-F). For example: '0123456789ABCDEFFEDCBA9876543210'.
Does this tool support file encryption?
No, this is a text-based calculator for hexadecimal input/output. For file encryption, you would need specialized software that implements SM4.
Is my data secure?
Yes, all calculations are performed locally in your browser. No data is sent to any server, ensuring complete privacy.
What padding does the tool use?
The tool uses PKCS7 padding for data that isn't a multiple of 128 bits. This is automatically applied during encryption and removed during decryption.

Need to run multiple calculations?

Create a free account today to unlock unlimited daily runs, access advanced parameters, save your history, and request custom features.

Register Free Account

Related Tools

Other useful calculators and utilities you might like

Developer Tools

محول Spotify إلى MP3

يحوّل ملفات الصوت المقدمة محليًا إلى MP3، مما يتيح الاستماع دون اتصال وتوافقًا عبر الأجهزة للموسيقى...

Developer Tools

حساب المسافة بالطرق

حاسب للمسافة بالطرق للمسافرين ومخططي اللوجستيات والسائقين لتقدير المسافات وأزمنة الرحلة بسرعة بين ال...

Developer Tools

حاسبة العمر

حدد عمر شخص بسرعة استناداً إلى تاريخ ميلاده مع أداتنا المجانية على الإنترنت، مناسبة للاستخدام الشخصي...

Developer Tools

محول العملات

حوّل بسرعة مبالغ بين عملات مختلفة باستخدام محول العملات المجاني عبر الإنترنت، مثالي للمسافرين، الشرك...

ملاحظاتك تهمنا

ساعدنا على التحسن