from hashlib import sha1
from re import subn

def hash(word):
    word = subn('\r','',word)[0]
    word = subn('\n','',word)[0]
    pass1 = sha1(word).digest()
    pass2 = sha1(pass1).hexdigest()
    return {"%s"%pass2.upper():word}
