SHA1 Hash Generator Online Tool

About SHA1 Hash Generator Online Tool:

This online SHA1 Hash Generator tool helps you to encrypt one input string into a fixed 160 bits SHA1 String.

Paste your Input String or drag text file in the first textbox, then press "SHA1 Encrypt" button, and the result will be displayed in the second textbox.

comic sha1

More information about SHA1:

RFC 3174:

Python Implementation of SHA1 (hashlib):

Java Implementation of SHA1:

PHP Implementation of SHA1:

SHA1 Generator with Python (with package hashlib):

import hashlib

def sha1_generator(str):
    m = hashlib.sha1()
    return m.hexdigest()

SHA1 Generator with Java (with package MessageDigest):

import java.math.BigInteger;

public String generate(String str){
    MessageDigest md = MessageDigest.getInstance("SHA-1");
    byte[] digest = md.digest();
    String result = new BigInteger(1, digest).toString(16).toUpperCase();
    return result;

SHA1 Generator with Linux (with OpenSSL):

[email protected]:/var/log/apache2# openssl dgst -sha1 access.log
SHA1(access.log)= dcf947a7c318007b8620d112a62cc7b1a7ea4eda