/usr/lib/python3/dist-packages/nacl/pwhash/__pycache__
NameSizeModeActions
argon2i.cpython-310.pyc38410644editdlrm
argon2id.cpython-310.pyc38580644editdlrm
scrypt.cpython-310.pyc58360644editdlrm
_argon2.cpython-310.pyc13190644editdlrm
__init__.cpython-310.pyc16640644editdlrm
Edit: /usr/lib/python3/dist-packages/nacl/pwhash/__pycache__/argon2id.cpython-310.pyc (3858B)
o ôåaQã@sþddlZddlZddlmZejZejjZ ej Z ej Z ej Z ej Z ejZejZejZejjZejjZejjZejjZejjZejjZejjZejjZ ejj!Z"ejj#Z$ee ej%j&fde'de(de(de'de'd ej%j)d e(fd d „Z*eefde(de'de'd e(fd d„Z+dS)éNé)Ú_argon2ÚsizeÚpasswordÚsaltÚopslimitÚmemlimitÚencoderÚreturnc Cs| tj |||||t¡¡S)aŒ Derive a ``size`` bytes long key from a caller-supplied ``password`` and ``salt`` pair using the argon2i memory-hard construct. the enclosing module provides the constants - :py:const:`.OPSLIMIT_INTERACTIVE` - :py:const:`.MEMLIMIT_INTERACTIVE` - :py:const:`.OPSLIMIT_MODERATE` - :py:const:`.MEMLIMIT_MODERATE` - :py:const:`.OPSLIMIT_SENSITIVE` - :py:const:`.MEMLIMIT_SENSITIVE` as a guidance for correct settings. :param size: derived key size, must be between :py:const:`.BYTES_MIN` and :py:const:`.BYTES_MAX` :type size: int :param password: password used to seed the key derivation procedure; it length must be between :py:const:`.PASSWD_MIN` and :py:const:`.PASSWD_MAX` :type password: bytes :param salt: **RANDOM** salt used in the key derivation procedure; its length must be exactly :py:const:`.SALTBYTES` :type salt: bytes :param opslimit: the time component (operation count) of the key derivation procedure's computational cost; it must be between :py:const:`.OPSLIMIT_MIN` and :py:const:`.OPSLIMIT_MAX` :type opslimit: int :param memlimit: the memory occupation component of the key derivation procedure's computational cost; it must be between :py:const:`.MEMLIMIT_MIN` and :py:const:`.MEMLIMIT_MAX` :type memlimit: int :rtype: bytes .. versionadded:: 1.2 )ÚencodeÚnaclÚbindingsÚcrypto_pwhash_algÚALG)rrrrrr ©rú6/usr/lib/python3/dist-packages/nacl/pwhash/argon2id.pyÚkdf5s 5 ÿÿrcCstj |||t¡S)a¯ Hashes a password with a random salt, using the memory-hard argon2id construct and returning an ascii string that has all the needed info to check against a future password The default settings for opslimit and memlimit are those deemed correct for the interactive user login case. :param bytes password: :param int opslimit: :param int memlimit: :rtype: bytes .. versionadded:: 1.2 )r r Úcrypto_pwhash_str_algr)rrrrrrÚstrqsÿr),Ú nacl.bindingsr Ú nacl.encodingÚrÚALG_ARGON2ID13rr Ú crypto_pwhash_argon2id_STRPREFIXÚ STRPREFIXÚ SALTBYTESÚ PASSWD_MINÚ PASSWD_MAXÚ PWHASH_SIZEÚ BYTES_MINÚ BYTES_MAXÚverifyÚ#crypto_pwhash_argon2id_MEMLIMIT_MINÚ MEMLIMIT_MINÚ#crypto_pwhash_argon2id_MEMLIMIT_MAXÚ MEMLIMIT_MAXÚ#crypto_pwhash_argon2id_OPSLIMIT_MINÚ OPSLIMIT_MINÚ#crypto_pwhash_argon2id_OPSLIMIT_MAXÚ OPSLIMIT_MAXÚ+crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVEÚOPSLIMIT_INTERACTIVEÚ+crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVEÚMEMLIMIT_INTERACTIVEÚ)crypto_pwhash_argon2id_OPSLIMIT_SENSITIVEÚOPSLIMIT_SENSITIVEÚ)crypto_pwhash_argon2id_MEMLIMIT_SENSITIVEÚMEMLIMIT_SENSITIVEÚ(crypto_pwhash_argon2id_OPSLIMIT_MODERATEÚOPSLIMIT_MODERATEÚ(crypto_pwhash_argon2id_MEMLIMIT_MODERATEÚMEMLIMIT_MODERATEÚencodingÚ RawEncoderÚintÚbytesÚEncoderrrrrrrÚsj ÿÿúÿþýüûú ù>ýÿþýü