зеркало из https://github.com/mozilla/markup-lib.git
Removed py-bcrypt.
This commit is contained in:
Родитель
16e8579b51
Коммит
baa06238f1
|
@ -1,33 +0,0 @@
|
|||
"""OpenBSD Blowfish password hashing.
|
||||
|
||||
This module implements the OpenBSD Blowfish password hashing
|
||||
algorithm, as described in "A Future-Adaptable Password Scheme" by
|
||||
Niels Provos and David Mazieres.
|
||||
|
||||
This system hashes passwords using a version of Bruce Schneier's
|
||||
Blowfish block cipher with modifications designed to raise the cost
|
||||
of off-line password cracking. The computation cost of the algorithm
|
||||
is parametised, so it can be increased as computers get faster.
|
||||
|
||||
Passwords are hashed using the hashpw() routine:
|
||||
|
||||
hashpw(password, salt) -> hashed_password
|
||||
|
||||
Salts for the the second parameter may be randomly generated using the
|
||||
gensalt() function:
|
||||
|
||||
gensalt(log_rounds = 12) -> random_salt
|
||||
|
||||
The parameter "log_rounds" defines the complexity of the hashing. The
|
||||
cost increases as 2**log_rounds.
|
||||
"""
|
||||
|
||||
import os
|
||||
from _bcrypt import *
|
||||
|
||||
def gensalt(log_rounds = 12):
|
||||
"""Generate a random text salt for use with hashpw(). "log_rounds"
|
||||
defines the complexity of the hashing, increasing the cost as
|
||||
2**log_rounds."""
|
||||
return encode_salt(os.urandom(16), min(max(log_rounds, 4), 31))
|
||||
|
Двоичные данные
lib/python/bcrypt/_bcrypt.so
Двоичные данные
lib/python/bcrypt/_bcrypt.so
Двоичный файл не отображается.
|
@ -1,18 +0,0 @@
|
|||
Metadata-Version: 1.0
|
||||
Name: py-bcrypt
|
||||
Version: 0.2
|
||||
Summary: Blowfish password hashing
|
||||
Home-page: http://www.mindrot.org/py-bcrypt.html
|
||||
Author: Damien Miller
|
||||
Author-email: djm@mindrot.org
|
||||
License: BSD
|
||||
Description: py-bcrypt is an implementation the OpenBSD Blowfish password hashing
|
||||
algorithm, as described in "A Future-Adaptable Password Scheme" by
|
||||
Niels Provos and David Mazieres.
|
||||
|
||||
This system hashes passwords using a version of Bruce Schneier's
|
||||
Blowfish block cipher with modifications designed to raise the cost
|
||||
of off-line password cracking. The computation cost of the algorithm
|
||||
is parametised, so it can be increased as computers get faster.
|
||||
|
||||
Platform: UNKNOWN
|
|
@ -1,10 +0,0 @@
|
|||
README
|
||||
bcrypt/__init__.py
|
||||
bcrypt/bcrypt.c
|
||||
bcrypt/bcrypt_python.c
|
||||
bcrypt/blowfish.c
|
||||
py_bcrypt.egg-info/PKG-INFO
|
||||
py_bcrypt.egg-info/SOURCES.txt
|
||||
py_bcrypt.egg-info/dependency_links.txt
|
||||
py_bcrypt.egg-info/top_level.txt
|
||||
test/test.py
|
|
@ -1,8 +0,0 @@
|
|||
../bcrypt/__init__.py
|
||||
../bcrypt/__init__.pyc
|
||||
../bcrypt/_bcrypt.so
|
||||
./
|
||||
dependency_links.txt
|
||||
PKG-INFO
|
||||
SOURCES.txt
|
||||
top_level.txt
|
|
@ -1 +0,0 @@
|
|||
bcrypt
|
Загрузка…
Ссылка в новой задаче