नेटवर्क/HTTP
Basic Auth Generator
HTTP Basic Authentication हेडर जनरेट या डिकोड करें — Base64(उपयोगकर्ता नाम:पासवर्ड)।
HTTP Basic Authentication sends a username and password in the Authorization header as Base64("username:password"). That's encoding, not encryption, so Basic Auth only makes sense on top of HTTPS.
How to use it
- Generate: enter a username and password and the tool builds the username:password string, Base64-encodes it, and produces a ready Authorization: Basic ... header.
- Decode: paste an existing Basic Auth header to decode it back into a username and password.
- Copy the finished header straight into curl, Postman, or a server config.
Common uses
- Building a header for manually testing an API with curl or Postman without running client code.
- Setting up basic authentication on nginx/Apache or in a reverse-proxy config.
- Decoding a header from logs or captured traffic while debugging an authentication issue.
Things to keep in mind
Base64 is not encryption — anyone intercepting the header instantly recovers the username and password in plain text.
Basic Auth is only safe over HTTPS — without TLS, credentials travel essentially in the clear.
इस टूल के बारे में लेख: HTTP Basic Auth: Authorization हेडर कैसे बनता है
अक्सर पूछे जाने वाले प्रश्न
Basic Auth हेडर वास्तव में कैसे बनता है?
यूज़रनेम और पासवर्ड को कोलन (user:password) से जोड़ा जाता है, फिर पूरी स्ट्रिंग को Base64 में एन्कोड किया जाता है और Authorization हेडर में "Basic " प्रीफ़िक्स जोड़ा जाता है — यह एन्क्रिप्शन नहीं, बल्कि एन्कोडिंग है।
क्या सामान्य HTTP पर Basic Auth इस्तेमाल करना सुरक्षित है?
नहीं। चूंकि क्रेडेंशियल्स केवल Base64-एन्कोडेड हैं, ट्रैफ़िक इंटरसेप्ट करने वाला कोई भी उन्हें आसानी से डिकोड कर सकता है — Basic Auth केवल HTTPS पर इस्तेमाल करना चाहिए।
क्या यह टूल मेरा यूज़रनेम या पासवर्ड कहीं भेजता है?
नहीं। हेडर पूरी तरह आपके ब्राउज़र में जनरेट होता है — कुछ भी सर्वर पर नहीं भेजा जाता।
Basic Auth से सुरक्षित साइट से "लॉग आउट" कैसे करें?
कोई स्टैंडर्ड तरीक़ा नहीं है — जब तक टैब खुला रहता है, ब्राउज़र क्रेडेंशियल कैश में रखता है। सबसे भरोसेमंद तरीक़ा है उस साइट के सारे टैब बंद करना या ब्राउज़र सेटिंग्स से साइट डेटा क्लियर करना।
Basic Auth के यूज़रनेम या पासवर्ड में स्पेशल कैरेक्टर इस्तेमाल किए जा सकते हैं?
हाँ, पर यूज़रनेम के अंदर ही कोलन होने से डिकोड करते समय अस्पष्टता पैदा होती है, इसलिए स्पेसिफ़िकेशन यूज़रनेम में कोलन से बचने की सलाह देता है।