hashingFunction() { python -c ' import sys, hashlib for line in sys.stdin: if not line.strip(): print("BLANK") else: if "@" in line: message = "Hashing Complete" lowercase = line.lower().strip().replace(" ", "") addressName = lowercase.split("@")[0].replace(".", "").split("+")[0] domainName = lowercase.split("@")[1].strip(".") formattedEmail = addressName + "@" + domainName # print(formattedEmail) print(hashlib.sha256(formattedEmail).hexdigest()) print(hashlib.md5(formattedEmail).hexdigest()) print(hashlib.sha1(formattedEmail).hexdigest()) else: print("INVALID EMAIL (no @ symbol)") message = "Hashing Complete ***List Contains Invalid Emails (no @ symbol)***" sys.stderr.write(message + "\n")' }