Post: Two Useful Python Scripts
05-20-2011, 01:38 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); MD5 Hash Generator, has a double MD5 option:







    import os

def create_hash(text) :
import md5
temp = md5.new()
temp.update(text)
print "The MD5 of ",text," Is : ",temp.hexdigest()

def create_double_hash(text) :
import md5
temp = md5.new()
temp.update(text)
temp.update(temp.hexdigest())
print "The double MD5 of ",text," Is : ",temp.hexdigest()

print "Welcome to Relevants MD5 Generator, Sorry for no GUI"
print "On selection type \"info\" for information on double MD5"
print ""
print "Enter \"1\" to generate a single MD5"
print "Enter \"2\" to generate a double MD5"
print ""
os.system("pause")
while True :
os.system("cls")
input = raw_input("Selection (\"1\",\"2\" or \"info\"): ")

if str(input) == "1" :
get_text = raw_input("Enter your string to MD5: ")
create_hash(get_text)
os.system("pause")
continue

if str(input) == "2" :
get_text = raw_input("Enter your string to MD5: ")
create_double_hash(get_text)
os.system("pause")
continue

if str(input) == "info" :
print "A double MD5 is simple a MD5 hash, of the MD5 Hash generated"
print "From the string that you enter"
os.system("pause")
continue

print "Wrong Input"


Internet Connection Testing:
    import os
while True :
print "Testing Internet..."
isOff = os.system("ping google.com -n 1 -l 1 >null.dat")
os.system("erase null.dat")
if isOff == False :
os.system("cls")
print "Internet connection: Connected"
break
os.system("cls")
print "Internet connection: Disconnected"
os.system("pause")


[multipage=Non Windows Specific Versions ]









MD5 Hash Generator, has a double MD5 option:
    def create_hash(text) :
import md5
temp = md5.new()
temp.update(text)
print "The MD5 of ",text," Is : ",temp.hexdigest()

def create_double_hash(text) :
import md5
temp = md5.new()
temp.update(text)
temp.update(temp.hexdigest())
print "The double MD5 of ",text," Is : ",temp.hexdigest()

print "Welcome to Relevants MD5 Generator, Sorry for no GUI"
print "On selection type \"info\" for information on double MD5"
print ""
print "Enter \"1\" to generate a single MD5"
print "Enter \"2\" to generate a double MD5"
print ""
raw_input("Press Enter To Continue . . .")
while True :
for x in range(0,24) :
print ""
input = raw_input("Selection (\"1\",\"2\" or \"info\"): ")

if str(input) == "1" :
get_text = raw_input("Enter your string to MD5: ")
create_hash(get_text)
continue

if str(input) == "2" :
get_text = raw_input("Enter your string to MD5: ")
create_double_hash(get_text)
continue

if str(input) == "info" :
print "A double MD5 is simple a MD5 hash, of the MD5 Hash generated"
print "From the string that you enter"
continue

print "Wrong Input"
(adsbygoogle = window.adsbygoogle || []).push({});

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo