crypt [单向加密]

    import crypt
    import random,string

    def getsalt(chars = string.letters+string.digits):
        return random.choice(chars)+random.choice(chars)
    salt = getsalt()
    print salt
    print crypt.crypt('bananas',salt)
文档更新时间: 2018-11-21 17:31   作者:RuM