1 line
16 KiB
JSON
1 line
16 KiB
JSON
{"nodes": [{"id": "backend_venv_lib_python3_12_site_packages_passlib_crypto_scrypt_init_py", "label": "__init__.py", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L1"}, {"id": "init_validate", "label": "validate()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L41"}, {"id": "init_estimate_maxmem", "label": "estimate_maxmem()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L72"}, {"id": "init_scrypt", "label": "scrypt()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L107"}, {"id": "init_load_builtin_backend", "label": "_load_builtin_backend()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L158"}, {"id": "init_load_cffi_backend", "label": "_load_cffi_backend()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L170"}, {"id": "init_load_stdlib_backend", "label": "_load_stdlib_backend()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L195"}, {"id": "init_set_backend", "label": "_set_backend()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L238"}, {"id": "init_has_backend", "label": "_has_backend()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L272"}, {"id": "init_rationale_1", "label": "passlib.utils.scrypt -- scrypt hash frontend and help utilities XXX: add this m", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L1"}, {"id": "init_rationale_42", "label": "helper which validates a set of scrypt config parameters. scrypt will take `", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L42"}, {"id": "init_rationale_73", "label": "calculate memory required for parameter combination. assumes parameters have", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L73"}, {"id": "init_rationale_108", "label": "run SCrypt key derivation function using specified parameters. :arg secret:", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L108"}, {"id": "init_rationale_159", "label": "Load pure-python scrypt implementation built into passlib.", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L159"}, {"id": "init_rationale_171", "label": "Try to import the ctypes-based scrypt hash function provided by the ``scrypt", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L171"}, {"id": "init_rationale_196", "label": "Attempt to load stdlib scrypt() implement and return wrapper. Returns None i", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L196"}, {"id": "init_rationale_239", "label": "set backend for scrypt(). if name not specified, loads first available. :ra", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L239"}, {"id": "init_rationale_40", "label": "# TODO: unittests for this function", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L40"}, {"id": "init_rationale_83", "label": "# NOTE: openssl's scrypt() enforces it's maxmem parameter based on calc located", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L83"}, {"id": "init_rationale_95", "label": "# TODO: configuration picker (may need psutil for full effect)", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L95"}, {"id": "init_rationale_209", "label": "# TODO: would like to enforce a single \"maxmem\" policy across all backends;", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L209"}], "edges": [{"source": "backend_venv_lib_python3_12_site_packages_passlib_crypto_scrypt_init_py", "target": "logging", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L11", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_passlib_crypto_scrypt_init_py", "target": "warnings", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L12", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_passlib_crypto_scrypt_init_py", "target": "passlib", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L14", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_passlib_crypto_scrypt_init_py", "target": "passlib_utils", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L15", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_passlib_crypto_scrypt_init_py", "target": "passlib_utils_compat", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L16", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_passlib_crypto_scrypt_init_py", "target": "init_validate", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L41", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_passlib_crypto_scrypt_init_py", "target": "init_estimate_maxmem", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L72", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_passlib_crypto_scrypt_init_py", "target": "init_scrypt", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L107", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_passlib_crypto_scrypt_init_py", "target": "init_load_builtin_backend", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L158", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_passlib_crypto_scrypt_init_py", "target": "init_load_cffi_backend", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L170", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_passlib_crypto_scrypt_init_py", "target": "init_load_stdlib_backend", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L195", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_passlib_crypto_scrypt_init_py", "target": "init_set_backend", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L238", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_passlib_crypto_scrypt_init_py", "target": "init_has_backend", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L272", "weight": 1.0}, {"source": "init_scrypt", "target": "init_validate", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L148", "weight": 1.0}, {"source": "init_has_backend", "target": "init_set_backend", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L274", "weight": 1.0}, {"source": "init_rationale_1", "target": "backend_venv_lib_python3_12_site_packages_passlib_crypto_scrypt_init_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L1", "weight": 1.0}, {"source": "init_rationale_42", "target": "init_validate", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L42", "weight": 1.0}, {"source": "init_rationale_73", "target": "init_estimate_maxmem", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L73", "weight": 1.0}, {"source": "init_rationale_108", "target": "init_scrypt", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L108", "weight": 1.0}, {"source": "init_rationale_159", "target": "init_load_builtin_backend", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L159", "weight": 1.0}, {"source": "init_rationale_171", "target": "init_load_cffi_backend", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L171", "weight": 1.0}, {"source": "init_rationale_196", "target": "init_load_stdlib_backend", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L196", "weight": 1.0}, {"source": "init_rationale_239", "target": "init_set_backend", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L239", "weight": 1.0}, {"source": "init_rationale_40", "target": "backend_venv_lib_python3_12_site_packages_passlib_crypto_scrypt_init_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L40", "weight": 1.0}, {"source": "init_rationale_83", "target": "backend_venv_lib_python3_12_site_packages_passlib_crypto_scrypt_init_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L83", "weight": 1.0}, {"source": "init_rationale_95", "target": "backend_venv_lib_python3_12_site_packages_passlib_crypto_scrypt_init_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L95", "weight": 1.0}, {"source": "init_rationale_209", "target": "backend_venv_lib_python3_12_site_packages_passlib_crypto_scrypt_init_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L209", "weight": 1.0}], "raw_calls": [{"caller_nid": "init_validate", "callee": "ValueError", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L52"}, {"caller_nid": "init_validate", "callee": "ValueError", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L55"}, {"caller_nid": "init_validate", "callee": "ValueError", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L61"}, {"caller_nid": "init_validate", "callee": "ValueError", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L64"}, {"caller_nid": "init_estimate_maxmem", "callee": "int", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L91"}, {"caller_nid": "init_scrypt", "callee": "to_bytes", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L149"}, {"caller_nid": "init_scrypt", "callee": "to_bytes", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L150"}, {"caller_nid": "init_scrypt", "callee": "ValueError", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L152"}, {"caller_nid": "init_scrypt", "callee": "ValueError", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L154"}, {"caller_nid": "init_scrypt", "callee": "_scrypt", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L155"}, {"caller_nid": "init_load_builtin_backend", "callee": "warn", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L163"}, {"caller_nid": "init_load_cffi_backend", "callee": "str", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L184"}, {"caller_nid": "init_load_cffi_backend", "callee": "warn", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L187"}, {"caller_nid": "init_load_cffi_backend", "callee": "warn", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L191"}, {"caller_nid": "init_set_backend", "callee": "MissingBackendError", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L254"}, {"caller_nid": "init_set_backend", "callee": "get", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L256"}, {"caller_nid": "init_set_backend", "callee": "ValueError", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L258"}, {"caller_nid": "init_set_backend", "callee": "loader", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L259"}, {"caller_nid": "init_set_backend", "callee": "MissingBackendError", "source_file": "backend/venv/lib/python3.12/site-packages/passlib/crypto/scrypt/__init__.py", "source_location": "L261"}]} |