Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Python: Encrypt password using DES encryption

Python: Encrypt password using DES encryption

import crypt
import random
import string
def getsalt(chars = string.letters + string.digits):
    # generate a random 2-character 'salt'
    return random.choice(chars) + random.choice(chars)
print crypt.crypt("mypassword2012", getsalt())

Users who found this page were searching for:

  • DES python
  • python encrypt string with password
  • crypt python des
  • python password generator using encrpytion
  • python how to encrypt a password in xml
  • python encryption examples
  • python des encryption example
  • python ftp password encrypt
  • python des crypt
  • python encrypted password generator

No comments yet.

Leave a Comment