Skip to content

Instantly share code, notes, and snippets.

@onkursen
onkursen / sha1-encode.py
Created March 27, 2014 21:19
SHA-1 + Base64 encoding
from hashlib import sha1
from base64 import b64encode
password = raw_input("Enter password: ")
encoded = b64encode(sha1(password).digest())
print "Encoded password is:"
print encoded
@onkursen
onkursen / README.md
Created August 5, 2012 23:59
Credit Card Validation

Credit card validation

Checks if a credit card number is valid based off of the techniques from this infographic.