ToolDeck

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.colAlgorithmhashSha1Content.colDigesthashSha1Content.colHexLengthhashSha1Content.colStandardhashSha1Content.colBestFor
SHA-1160 bits40 hex chars1995 / RFC 3174Deprecated — legacy git commits, old TLS
SHA-256256 bits64 hex chars2001 / FIPS 180-4TLS certificates, blockchain, JWTs
SHA-384384 bits96 hex chars2001 / FIPS 180-4Government systems, higher security margin
SHA-512512 bits128 hex chars2001 / FIPS 180-4Digital signatures, HMAC with large keys
MD5128 bits32 hex chars1992 / RFC 1321Checksums only — broken since 2004
SHA-3256 bits64 hex chars2015 / FIPS 202Post-quantum readiness, alternative to SHA-2
BLAKE3256 bits64 hex chars2020High-performance checksums, Merkle trees

hashSha1Content.internalsTitle

hashSha1Content.internalsBody

Input: "hello world"
SHA-1: 2aae6c35c94fcfb415dbe95f408b9ce91ee846ed
(160 bits = 20 bytes = 40 hex characters)
hashSha1Content.colStephashSha1Content.colDescription
PaddingAppend a 1-bit, then zeros, until message length is 448 mod 512. Append the original length as a 64-bit big-endian integer.
Block splittingDivide the padded message into 512-bit (64-byte) blocks.
ExpansionExpand each 16-word block into 80 words using a left-rotate-by-1 XOR feedback schedule.
CompressionProcess 80 rounds per block using four nonlinear functions (Ch, Parity, Maj, Parity) across rounds 0-19, 20-39, 40-59, and 60-79.
OutputConcatenate 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