repo.or.cz
/
python-cryptoplus.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
initial population of Hash module
[python-cryptoplus.git]
/
src
/
CryptoPlus
/
Hash
/
python_PBKDF2.py
blob
8edb61bff70ca9639645952fcbfa0a220f1b084a
1
import
pypbkdf2
2
from
CryptoPlus
.
Hash
import
SHA1
,
HMAC
3
4
__all__
= [
'new'
]
5
6
def
new
(
passphrase
,
salt
,
iterations
=
1000
,
digestmodule
=
SHA1
,
macmodule
=
HMAC
):
7
return
pypbkdf2
.
PBKDF2
(
passphrase
,
salt
,
iterations
,
digestmodule
,
macmodule
)