/usr/lib/python3/dist-packages/nacl/__pycache__
NameSizeModeActions
encoding.cpython-310.pyc34580644editdlrm
exceptions.cpython-310.pyc24090644editdlrm
hash.cpython-310.pyc50440644editdlrm
hashlib.cpython-310.pyc46000644editdlrm
public.cpython-310.pyc132900644editdlrm
secret.cpython-310.pyc98220644editdlrm
signing.cpython-310.pyc78120644editdlrm
utils.cpython-310.pyc25940644editdlrm
__init__.cpython-310.pyc5670644editdlrm
Edit: /usr/lib/python3/dist-packages/nacl/__pycache__/utils.cpython-310.pyc (2594B)
o a% @sddlZddlmZmZmZddlZddlmZedddZGddde Z Gdd d Z d e d e fd d Z dded e fddZejfdede dejd e fddZdS)N) SupportsBytesTypeTypeVar)encoding_EncryptedMessageEncryptedMessage)boundc @sleZdZUdZeed<eed<edeededededef d d Z e defd d Z e defd dZ dS)rze A bytes subclass that holds a messaged that has been encrypted by a :class:`SecretBox`. _nonce _ciphertextclsnonce ciphertextcombinedreturncCs||}||_||_|SN)r r )r r r robjr,/usr/lib/python3/dist-packages/nacl/utils.py _from_parts"szEncryptedMessage._from_partscC|jS)zX The nonce used during the encryption of the :class:`EncryptedMessage`. )r selfrrrr .zEncryptedMessage.noncecCr)zP The ciphertext contained within the :class:`EncryptedMessage`. )r rrrrr 5rzEncryptedMessage.ciphertextN) __name__ __module__ __qualname____doc__bytes__annotations__ classmethodrrrpropertyr r rrrrrs(   c@seZdZdedefddZdS) StringFixerrrcCs t|Sr)str __bytes__rrrr__str__>s zStringFixer.__str__N)rrrrr"r$rrrrr!=sr!bytes_inrcCs |dS)Nascii)decode)r%rrrbytes_as_stringB r( sizecCs t|Sr)osurandom)r+rrrrandomFr)r.seedencodercCstj||}||S)z Returns ``size`` number of deterministically generated pseudorandom bytes from a seed :param size: int :param seed: bytes :param encoder: The encoder class used to encode the produced bytes :rtype: bytes )naclbindingsrandombytes_buf_deterministicencode)r+r/r0raw_datarrrrandombytes_deterministicJs r6)r*)r,typingrrr nacl.bindingsr1rrrrr!r"r(intr. RawEncoderEncoderr6rrrrs&  $