مولد Hash

رائج 🔥

توليد تجزئات SHA-256 و SHA-512

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

  1. 1أدخل النص في حقل الإدخال
  2. 2اختر خوارزمية التجزئة المطلوبة
  3. 3تُحسَب قيمة التجزئة فورًا

حول مولد Hash

مُنشئ التجزئة هو أداة تشفير تحسب قيم التجزئة للنصوص باستخدام خوارزميات متعددة: MD5 وSHA-1 وSHA-256 وSHA-512 وغيرها. يُستخدم لفحص سلامة الملفات وتخزين كلمات المرور والتوقيعات الرقمية. جميع العمليات تتم في المتصفح.

المميزات الرئيسية لـ مولد Hash

  • دعم MD5 وSHA-1 وSHA-256 وSHA-512
  • حساب فوري في المتصفح
  • إدخال نصي وملفات
  • عرض بصيغة Hex وBase64
  • لا يُرسَل أي بيانات إلى الخادم
  • Works entirely in-browser — input never leaves your device
  • Handles Unicode text including emoji and non-Latin characters
  • No file size limit for text input

أمثلة

تجزئة نص بسيط

حساب SHA-256 لكلمة

المدخلات

مرحبا

النتيجة

SHA-256: 8a9bcf...

Hash a password for storage verification (not direct storage)

Demonstrate the avalanche effect — a tiny change produces a completely different hash.

المدخلات

password1 vs password2

النتيجة

Completely different 64-character SHA-256 hashes, demonstrating one-way transformation

حالات الاستخدام الشائعة

  • التحقق من سلامة الملفات
  • تخزين كلمات المرور بأمان
  • التوقيع الرقمي
  • مقارنة النصوص
  • اختبار خوارزميات التشفير
  • Producing file fingerprints to detect unauthorized modifications

استكشاف الأخطاء

نتائج مختلفة لنفس النص

الحل

تأكد من عدم وجود مسافات أو أحرف غير مرئية زائدة في النص

MD5 غير آمن

الحل

MD5 غير مناسب لتخزين كلمات المرور — استخدم SHA-256 أو أقوى لهذا الغرض

Hash of the same input keeps changing

الحل

Hash functions are deterministic — the same input always produces the same output. If hashes differ, there is a difference in input (e.g., encoding, whitespace, or newlines). Check for hidden characters.

الأسئلة الشائعة

ما أفضل خوارزمية للاستخدام؟

SHA-256 هو الخيار الموصى به للاستخدامات العامة. MD5 وSHA-1 لا يُنصح بهما لأغراض الأمان.

هل يمكن عكس التجزئة؟

لا، التجزئة عملية أحادية الاتجاه لا يمكن عكسها نظريًا.

Can I use SHA-256 to store passwords?

Not directly. Raw SHA-256 is too fast, making brute-force attacks feasible. Use a password-specific algorithm like bcrypt, Argon2, or PBKDF2 which are intentionally slow and include salting. SHA-256 is appropriate for data integrity verification.

What is the difference between SHA-256 and SHA-512?

Both are part of the SHA-2 family. SHA-256 produces a 256-bit (64 hex character) digest; SHA-512 produces a 512-bit (128 hex character) digest. SHA-512 is slightly more secure but produces a longer output. SHA-256 is the most widely used.

Can two different inputs produce the same hash (collision)?

Theoretically yes, but for SHA-256 and SHA-512 no practical collision has ever been found. Collisions are computationally infeasible with current technology, making these algorithms secure for integrity verification.

Why does hashing the same text always give the same result?

Hash functions are deterministic algorithms — they always map the same input to the same output. This property is essential for use cases like integrity checks, where you compare a known-good hash against a freshly computed one.

Is my data sent to a server?

No. Hashing is performed in your browser using the Web Crypto API (window.crypto.subtle). Your input text never leaves your device and is not transmitted or stored anywhere.

Can I hash a file instead of text?

The text input mode hashes text strings. If you need to hash a file, read the file content as text or ArrayBuffer and hash it — file hashing may be added as a feature in a future update.