हैश/क्रिप्टो
AES Encrypt/Decrypt
पासवर्ड का उपयोग करके AES-GCM या AES-CBC से टेक्स्ट को एन्क्रिप्ट और डिक्रिप्ट करें (की PBKDF2 से डिराइव्ड)।
AES is the standard for symmetric encryption: the same password is used to both encrypt and decrypt. This tool derives an encryption key from your password with PBKDF2 and encrypts text with AES-GCM or AES-CBC — all locally in your browser.
How to use it
- Encrypt: enter text and a password, pick a mode (GCM or CBC), and get an encrypted result along with the parameters (salt, IV) needed to decrypt it later.
- Decrypt: paste the encrypted text and the same password to get the original back.
- AES-GCM is the recommended default: it encrypts and verifies data integrity at the same time (authenticated encryption).
Common uses
- Encrypting sensitive text before storing it or sending it over an untrusted channel.
- Checking that an AES encryption implementation matches across different languages or libraries.
- A teaching example for understanding the difference between the GCM and CBC encryption modes.
Things to keep in mind
The IV (initialization vector) must be unique for every encryption performed with the same key — reusing a key+IV pair in GCM completely breaks the encryption's security.
AES-CBC without a separate integrity check (a MAC) is vulnerable to ciphertext-tampering attacks — that's why GCM, which combines encryption and authentication in one mode, is the safer default.
इस टूल के बारे में लेख: AES: सिमेट्रिक एन्क्रिप्शन कैसे काम करता है
अक्सर पूछे जाने वाले प्रश्न
यहाँ AES किन की-साइज़ का समर्थन करता है और कौन-सा इस्तेमाल करना चाहिए?
AES 128, 192 और 256-बिट कीज़ का समर्थन करता है। नए ऐप्लिकेशन के लिए आमतौर पर AES-256 की सलाह दी जाती है — 128-बिट पहले से ही सुरक्षित माना जाता है, लेकिन 256-बिट लगभग बिना किसी व्यावहारिक लागत के अतिरिक्त सुरक्षा मार्जिन देता है।
सिफर मोड्स (जैसे CBC, GCM) में क्या अंतर है?
GCM एन्क्रिप्शन के साथ-साथ साइफरटेक्स्ट को प्रमाणित भी करता है, इसलिए यह छेड़छाड़ भी पकड़ लेता है, इसीलिए इसे डिफ़ॉल्ट रूप से सुझाया जाता है। CBC केवल एन्क्रिप्ट करता है और अखंडता के लिए अलग MAC चाहिए, साथ ही सुरक्षित रहने के लिए हर बार एक रैंडम IV भी।
क्या मेरी की या प्लेनटेक्स्ट कहीं भेजी जाती है?
नहीं। सारा एन्क्रिप्शन और डिक्रिप्शन आपके ब्राउज़र में Web Crypto API के ज़रिए स्थानीय रूप से होता है — कुछ भी सर्वर पर नहीं भेजा जाता।
ECB मोड का इस्तेमाल क्यों नहीं करना चाहिए?
ECB हर ब्लॉक को स्वतंत्र और एक जैसे तरीक़े से एन्क्रिप्ट करता है, इसलिए प्लेनटेक्स्ट के एक जैसे ब्लॉक एक जैसे साइफरटेक्स्ट ब्लॉक देते हैं — इससे डेटा की संरचना उजागर हो जाती है (जैसे किसी इमेज में दोहराए गए पैटर्न एन्क्रिप्टेड फ़ॉर्म में भी दिखाई देते रहते हैं)। यूनीक IV वाला CBC या GCM इस समस्या को दूर करता है।
अगर एक ही की के साथ वही IV दोबारा इस्तेमाल किया जाए तो क्या होगा?
GCM के लिए यह गंभीर ग़लती है — की+IV जोड़े का दोबारा इस्तेमाल एन्क्रिप्शन की गोपनीयता और प्रामाणिकता दोनों को पूरी तरह कमज़ोर कर देता है। IV हमेशा एक ही की के साथ हर एन्क्रिप्शन के लिए यूनीक होना चाहिए।