Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- md5crypt, sha256crypt, sha512crypt, and bcrypt are 34,55,98, and 60 chars long respectively
- (in base64 encoding with annotation and salt)
- >>> import crypt
- >>> crypt.crypt('not my real password','$1$saltsalt')
- '$1$saltsalt$4iXfpnrgHRXkrDbPymCE4/'
- >>> crypt.crypt('not my real password','$5$saltsalt')
- '$5$saltsalt$E0bMpsLR71z8LIvd6p2tD4LZ984JxyD7B9lPLhq4vY7'
- >>> crypt.crypt('not my real password','$6$saltsalt')
- '$6$saltsalt$KnqiStSM0GULvZdkTBbiPUhoHemQ7Q06YnvuJ0PWWZbjzx3m0RCc/hCfq54Ro3fOwaJdEAliX9igT9DD2oN1u/'
- >>> import bcrypt
- >>> bcrypt.hashpw('not my real password', "$2a$12$saltsaltsaltsaltsalt..")
- '$2a$12$saltsaltsaltsaltsalt..FW/kWpMA84AQoIE.Qg1Tk5.FKGpxBNC'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement