SHA-1 Hash Generator
যেকোনো টেক্সট থেকে SHA-1 হ্যাশ তৈরি করুন
ইনপুট টেক্সট
স্থানীয়ভাবে চলে · গোপন তথ্য পেস্ট করা নিরাপদ
SHA-1 হ্যাশ
SHA-1 হ্যাশ এখানে দেখাবে…
hashSha1Content.whatTitle
hashSha1Content.whatBody1
hashSha1Content.whatBody2
hashSha1Content.whatBody3
hashSha1Content.whyTitle
hashSha1Content.whyBody
⚡
hashSha1Content.b1Title
hashSha1Content.b1Body
🔒
hashSha1Content.b2Title
hashSha1Content.b2Body
📋
hashSha1Content.b3Title
hashSha1Content.b3Body
🔍
hashSha1Content.b4Title
hashSha1Content.b4Body
hashSha1Content.useCasesTitle
hashSha1Content.uc1Title
hashSha1Content.uc1Body
hashSha1Content.uc2Title
hashSha1Content.uc2Body
hashSha1Content.uc3Title
hashSha1Content.uc3Body
hashSha1Content.uc4Title
hashSha1Content.uc4Body
hashSha1Content.uc5Title
hashSha1Content.uc5Body
hashSha1Content.uc6Title
hashSha1Content.uc6Body
hashSha1Content.comparisonTitle
hashSha1Content.comparisonBody
| hashSha1Content.colAlgorithm | hashSha1Content.colDigest | hashSha1Content.colHexLength | hashSha1Content.colStandard | hashSha1Content.colBestFor |
|---|---|---|---|---|
| SHA-1 | 160 bits | 40 hex chars | 1995 / RFC 3174 | Deprecated — legacy git commits, old TLS |
| SHA-256 | 256 bits | 64 hex chars | 2001 / FIPS 180-4 | TLS certificates, blockchain, JWTs |
| SHA-384 | 384 bits | 96 hex chars | 2001 / FIPS 180-4 | Government systems, higher security margin |
| SHA-512 | 512 bits | 128 hex chars | 2001 / FIPS 180-4 | Digital signatures, HMAC with large keys |
| MD5 | 128 bits | 32 hex chars | 1992 / RFC 1321 | Checksums only — broken since 2004 |
| SHA-3 | 256 bits | 64 hex chars | 2015 / FIPS 202 | Post-quantum readiness, alternative to SHA-2 |
| BLAKE3 | 256 bits | 64 hex chars | 2020 | High-performance checksums, Merkle trees |
hashSha1Content.internalsTitle
hashSha1Content.internalsBody
Input: "hello world"
SHA-1: 2aae6c35c94fcfb415dbe95f408b9ce91ee846ed
(160 bits = 20 bytes = 40 hex characters)
SHA-1: 2aae6c35c94fcfb415dbe95f408b9ce91ee846ed
(160 bits = 20 bytes = 40 hex characters)
| hashSha1Content.colStep | hashSha1Content.colDescription |
|---|---|
| Padding | Append a 1-bit, then zeros, until message length is 448 mod 512. Append the original length as a 64-bit big-endian integer. |
| Block splitting | Divide the padded message into 512-bit (64-byte) blocks. |
| Expansion | Expand each 16-word block into 80 words using a left-rotate-by-1 XOR feedback schedule. |
| Compression | Process 80 rounds per block using four nonlinear functions (Ch, Parity, Maj, Parity) across rounds 0-19, 20-39, 40-59, and 60-79. |
| Output | Concatenate the five 32-bit state words (H0-H4) into a 160-bit (20-byte) digest, rendered as 40 hexadecimal characters. |
hashSha1Content.internalsNote
hashSha1Content.codeTitle
hashSha1Content.codeBody
JavaScript (Web Crypto API — browser & Node.js)
// SHA-1 is available in the Web Crypto API
async function sha1(text) {
const data = new TextEncoder().encode(text)
const hashBuffer = await crypto.subtle.digest('SHA-1', data)
const hashArray = Array.from(new Uint8Array(hashBuffer))
return hashArray.map(b => b.toString(16).padStart(2, '0')).join('')
}
await sha1('hello world')
// → "2aae6c35c94fcfb415dbe95f408b9ce91ee846ed"
// Node.js (built-in crypto module)
const crypto = require('crypto')
crypto.createHash('sha1').update('hello world').digest('hex')
// → "2aae6c35c94fcfb415dbe95f408b9ce91ee846ed"Python
import hashlib
# Basic SHA-1 hash
result = hashlib.sha1(b'hello world').hexdigest()
print(result) # → "2aae6c35c94fcfb415dbe95f408b9ce91ee846ed"
# Hash a string (encode to bytes first)
text = 'hello world'
hashlib.sha1(text.encode('utf-8')).hexdigest()
# → "2aae6c35c94fcfb415dbe95f408b9ce91ee846ed"
# Hash a file in chunks
with open('file.bin', 'rb') as f:
sha1 = hashlib.sha1()
for chunk in iter(lambda: f.read(8192), b''):
sha1.update(chunk)
print(sha1.hexdigest())Go
package main
import (
"crypto/sha1"
"fmt"
)
func main() {
data := []byte("hello world")
hash := sha1.Sum(data)
fmt.Printf("%x\n", hash)
// → 2aae6c35c94fcfb415dbe95f408b9ce91ee846ed
}CLI (Linux / macOS)
# Using sha1sum (Linux) or shasum (macOS) echo -n "hello world" | sha1sum # → 2aae6c35c94fcfb415dbe95f408b9ce91ee846ed - # macOS echo -n "hello world" | shasum -a 1 # → 2aae6c35c94fcfb415dbe95f408b9ce91ee846ed - # Hash a file sha1sum package.json # → a1b2c3d4e5f6... package.json # Using openssl (cross-platform) echo -n "hello world" | openssl sha1 # → SHA1(stdin)= 2aae6c35c94fcfb415dbe95f408b9ce91ee846ed
hashSha1Content.faqTitle
hashSha1Content.q1
hashSha1Content.a1
hashSha1Content.q2
hashSha1Content.a2
hashSha1Content.q3
hashSha1Content.a3
hashSha1Content.q4
hashSha1Content.a4
hashSha1Content.q5
hashSha1Content.a5
hashSha1Content.q6
hashSha1Content.a6
hashSha1Content.q7
hashSha1Content.a7
সম্পর্কিত টুলস
MD5 Hash Generatorযেকোনো টেক্সট থেকে MD5 হ্যাশ তৈরি করুনSHA-256 হ্যাশ জেনারেটরযেকোনো টেক্সট থেকে SHA-256 হ্যাশ তৈরি করুনSHA-384 হ্যাশ জেনারেটরযেকোনো টেক্সট থেকে SHA-384 হ্যাশ তৈরি করুনSHA-512 হ্যাশ জেনারেটরযেকোনো টেক্সট থেকে SHA-512 হ্যাশ তৈরি করুনHMAC জেনারেটরSHA-256, SHA-384 বা SHA-512 দিয়ে HMAC স্বাক্ষর তৈরি করুনহ্যাশ আইডেন্টিফায়ারদৈর্ঘ্য এবং ফরম্যাট অনুযায়ী হ্যাশ টাইপ সনাক্ত করুন — MD5, SHA-1, SHA-256 এবং আরও