MCPcopy Create free account

hub / github.com/CarterPerez-dev/Cybersecurity-Projects / functions

Functions8,109 in github.com/CarterPerez-dev/Cybersecurity-Projects

Methodtest_empty_result_has_zero_findings
( self, empty_result: ScanResult )
PROJECTS/intermediate/dlp-scanner/tests/test_reporters/test_json_report.py:131
Methodtest_empty_statistics
Verify empty statistics have zero values
PROJECTS/beginner/network-traffic-analyzer/python/tests/test_models.py:152
Methodtest_empty_string
Checks that an empty string results in a failed peel
PROJECTS/beginner/base64-tool/tests/test_peeler.py:100
Methodtest_empty_string
Confirms empty string input returns empty string for both encrypt and decrypt
PROJECTS/beginner/caesar-cipher/tests/test_cipher.py:142
Methodtest_empty_strings_skipped
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_db_scanner.py:254
Methodtest_enabled_with_url
Webhook enables when URL and requests exist
PROJECTS/beginner/keylogger/test_keylogger.py:350
Methodtest_encode_base32
Checks that the encode command outputs the correct base32 string with --format base32
PROJECTS/beginner/base64-tool/tests/test_cli.py:55
Methodtest_encode_base64
Checks that the encode command outputs the correct base64 string
PROJECTS/beginner/base64-tool/tests/test_cli.py:33
Methodtest_encode_binary_data
Encodes all 256 byte values and checks the roundtrip is lossless
PROJECTS/beginner/base64-tool/tests/test_encoders.py:79
Methodtest_encode_decode_roundtrip
Checks that all registered formats produce a lossless roundtrip via encode() and decode()
PROJECTS/beginner/base64-tool/tests/test_encoders.py:251
Methodtest_encode_empty
Checks that encoding empty bytes produces an empty string
PROJECTS/beginner/base64-tool/tests/test_encoders.py:67
Methodtest_encode_empty_string
Checks that encoding an empty string succeeds without error
PROJECTS/beginner/base64-tool/tests/test_cli.py:83
Methodtest_encode_hex
Checks that the encode command outputs the correct hex string with --format hex
PROJECTS/beginner/base64-tool/tests/test_cli.py:41
Methodtest_encode_simple
Checks that 'Hello' encodes to its known base32 representation
PROJECTS/beginner/base64-tool/tests/test_encoders.py:135
Methodtest_encode_simple
Checks that bytes \\xca\\xfe encode to the hex string 'cafe'
PROJECTS/beginner/base64-tool/tests/test_encoders.py:168
Methodtest_encode_simple_text
Checks that 'Hello World' encodes to the known base64 string
PROJECTS/beginner/base64-tool/tests/test_encoders.py:48
Methodtest_encode_special_chars
Checks that spaces and ampersands are percent-encoded
PROJECTS/beginner/base64-tool/tests/test_encoders.py:213
Methodtest_encode_unicode
Checks that multi-byte unicode survives a base64 roundtrip
PROJECTS/beginner/base64-tool/tests/test_encoders.py:100
Methodtest_encode_url
Checks that the encode command percent-encodes special characters with --format url
PROJECTS/beginner/base64-tool/tests/test_cli.py:69
Methodtest_encode_with_url_chars
Checks that URL-safe base64 never emits + or / characters
PROJECTS/beginner/base64-tool/tests/test_encoders.py:110
Methodtest_encoded_is_ascii
Checks that base64 output is always valid ASCII
PROJECTS/beginner/base64-tool/tests/test_properties.py:54
Methodtest_encoded_is_hex_chars_only
Checks that hex output contains only lowercase hex characters
PROJECTS/beginner/base64-tool/tests/test_properties.py:131
Methodtest_encoded_is_uppercase
Checks that base32 output is always uppercase
PROJECTS/beginner/base64-tool/tests/test_properties.py:98
Methodtest_encoded_length_is_double
Checks that hex output is exactly twice the length of the input
PROJECTS/beginner/base64-tool/tests/test_properties.py:124
Methodtest_encoded_length_is_multiple_of_4
Checks that base64 output length is always a multiple of 4
PROJECTS/beginner/base64-tool/tests/test_properties.py:62
Methodtest_encoded_length_is_multiple_of_8
Checks that base32 output length is always a multiple of 8
PROJECTS/beginner/base64-tool/tests/test_properties.py:106
Functiontest_encoder_boolean_to_float
Boolean features encode to 0.0 or 1.0.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_features.py:550
Functiontest_encoder_method_ordinal
HTTP methods map to deterministic ordinal indices.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_features.py:525
Functiontest_encoder_numerical_passthrough
Numerical features pass through as raw float values.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_features.py:562
Functiontest_encoder_output_shape_and_type
Encoded vector has exactly 35 float elements.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_features.py:516
Functiontest_encoder_status_class_ordinal
Status classes map to deterministic ordinal indices.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_features.py:539
Functiontest_encoder_unknown_categorical
Unknown categorical values fall back to 0.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_features.py:573
Methodtest_encrypt_basic
Runs the encrypt command with key 3 and checks KHOOR appears in output
PROJECTS/beginner/caesar-cipher/tests/test_cli.py:31
Methodtest_encrypt_basic
Encrypts uppercase text with key 3 and checks the shifted output
PROJECTS/beginner/caesar-cipher/tests/test_cipher.py:24
Functiontest_encrypt_decrypt_round_trip
Verify decrypt(encrypt(x)) returns the original x The most basic encryption test imaginable: encrypt some bytes, decrypt them, get the s
PROJECTS/foundations/password-manager/tests/test_crypto.py:266
Methodtest_encrypt_decrypt_roundtrip
Encrypts then decrypts a full sentence and asserts the result matches the original
PROJECTS/beginner/caesar-cipher/tests/test_cipher.py:80
Methodtest_encrypt_from_file
Encrypts text read from a temp input file and checks the ciphertext in output
PROJECTS/beginner/caesar-cipher/tests/test_cli.py:108
Functiontest_encrypt_handles_empty_plaintext
Verify encrypt() handles an empty bytes object cleanly The empty plaintext is a real edge case: a freshly-initialized vault encrypts an
PROJECTS/foundations/password-manager/tests/test_crypto.py:317
Methodtest_encrypt_invalid_key
Runs encrypt with key 30 and confirms exit code 1 and an error message
PROJECTS/beginner/caesar-cipher/tests/test_cli.py:47
Methodtest_encrypt_lowercase
Encrypts lowercase text and confirms lowercase output is preserved
PROJECTS/beginner/caesar-cipher/tests/test_cipher.py:31
Methodtest_encrypt_mixed_case
Encrypts mixed-case text and confirms upper and lower shift independently
PROJECTS/beginner/caesar-cipher/tests/test_cipher.py:38
Methodtest_encrypt_preserves_numbers
Confirms digits pass through encryption unchanged
PROJECTS/beginner/caesar-cipher/tests/test_cipher.py:59
Methodtest_encrypt_preserves_punctuation
Confirms commas and exclamation marks pass through encryption unchanged
PROJECTS/beginner/caesar-cipher/tests/test_cipher.py:52
Methodtest_encrypt_preserves_spaces
Confirms spaces pass through encryption without being shifted
PROJECTS/beginner/caesar-cipher/tests/test_cipher.py:45
Functiontest_encrypt_produces_fresh_nonce_each_call
Verify two calls to encrypt() with the same plaintext+key still produce different output Each encrypt() call internally calls generate_nonce
PROJECTS/foundations/password-manager/tests/test_crypto.py:290
Methodtest_encrypt_to_file
Encrypts text and writes to a temp file, then reads it back to verify contents
PROJECTS/beginner/caesar-cipher/tests/test_cli.py:126
Methodtest_encrypt_with_spaces
Runs encrypt on a two-word phrase and checks both words shift correctly
PROJECTS/beginner/caesar-cipher/tests/test_cli.py:39
Functiontest_encrypted_pdf_raises_error
Test that encrypted PDFs raise MetadataReadingError. Note: This test creates a minimal encrypted PDF for testing.
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_pdf_handler.py:158
Functiontest_end_to_end_valid_line
A valid log line flows through all 4 stages and produces a scored result.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_pipeline.py:67
Functiontest_endpoint
()
PROJECTS/advanced/api-rate-limiter/tests/conftest.py:891
Functiontest_endpoint
()
PROJECTS/advanced/api-rate-limiter/tests/test_integration.py:62
Methodtest_endpoint
()
PROJECTS/advanced/api-rate-limiter/tests/test_integration.py:484
Functiontest_endpoint_post
()
PROJECTS/advanced/api-rate-limiter/tests/conftest.py:895
Functiontest_endpoint_post
()
PROJECTS/advanced/api-rate-limiter/tests/test_integration.py:66
Methodtest_endpoint_stats_totals
Verify total_packets and total_bytes computed properties
PROJECTS/beginner/network-traffic-analyzer/python/tests/test_models.py:134
Methodtest_endpoint_value
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_types.py:129
Functiontest_engine
Session scoped async engine with in memory SQLite StaticPool keeps single connection so DB persists
PROJECTS/advanced/bug-bounty-platform/backend/conftest.py:48
Methodtest_english_text_in_expected_range
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_detectors/test_entropy.py:25
Methodtest_ensemble_metrics_present
Ensemble validation metrics are populated
PROJECTS/advanced/ai-threat-detection/backend/tests/test_orchestrator.py:112
Methodtest_entries_pass_feature_extraction
All generated entries extract and encode without error
PROJECTS/advanced/ai-threat-detection/backend/tests/test_synthetic.py:142
Functiontest_entry_from_dict_missing_password_raises
Verify Entry.from_dict refuses a dict without a `password` field The required fields are username and password. If a vault on disk has b
PROJECTS/foundations/password-manager/tests/test_vault.py:460
Functiontest_entry_from_dict_missing_username_raises
Verify Entry.from_dict refuses a dict without a `username` field Mirror of the missing-password test. Required fields cannot be invented
PROJECTS/foundations/password-manager/tests/test_vault.py:474
Functiontest_entry_from_dict_non_string_password_raises
Verify Entry.from_dict refuses a non-string password JSON allows numbers, booleans, nulls, and nested objects in any field. If somebody
PROJECTS/foundations/password-manager/tests/test_vault.py:485
Functiontest_entry_from_dict_uses_empty_string_for_missing_timestamps
Verify Entry.from_dict defaults missing timestamps to "" rather than _now_iso() The two non-required fields, `created_at` and `updated_at`,
PROJECTS/foundations/password-manager/tests/test_vault.py:498
Functiontest_entry_is_immutable
Verify Entry instances reject attribute assignment after construction Frozen dataclass instances raise FrozenInstanceError on any attemp
PROJECTS/foundations/password-manager/tests/test_vault.py:441
Methodtest_enum_is_str_enum
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_types.py:72
Methodtest_enum_members_exist
All three key type variants are accessible
PROJECTS/beginner/keylogger/test_keylogger.py:78
Methodtest_enum_values_are_unique
Each variant has a distinct value
PROJECTS/beginner/keylogger/test_keylogger.py:86
Methodtest_error_roundtrip
ERROR message survives pack -> unpack
PROJECTS/beginner/c2-beacon/backend/tests/test_protocol.py:92
Methodtest_eval_mode_disables_dropout
Identical inputs produce identical outputs in eval mode (dropout is off).
PROJECTS/advanced/ai-threat-detection/backend/tests/test_autoencoder.py:122
Functiontest_evaluate_header_case_insensitive_lookup
HTTP header names are case-insensitive per RFC 7230 — `Referrer-Policy` and `referrer-policy` and `REFERRER-POLICY` mean the same thing
PROJECTS/foundations/http-headers-scanner/test_http_headers_scanner.py:171
Functiontest_evaluate_header_hsts_max_age_zero_is_weak
`max-age=0` actively DISABLES HSTS for return visits — the header is present but does the opposite of what we want, so it must be flagged
PROJECTS/foundations/http-headers-scanner/test_http_headers_scanner.py:153
Functiontest_evaluate_header_missing
Header is not in the response at all → status = missing
PROJECTS/foundations/http-headers-scanner/test_http_headers_scanner.py:141
Functiontest_evaluate_header_no_must_match_treats_presence_as_ok
A rule with must_match=None passes whenever the header exists
PROJECTS/foundations/http-headers-scanner/test_http_headers_scanner.py:186
Functiontest_evaluate_header_present_with_required_substring
Header is present AND contains must_contain → status = ok
PROJECTS/foundations/http-headers-scanner/test_http_headers_scanner.py:114
Functiontest_evaluate_header_present_without_required_substring
Header is present but does NOT match must_match → status = weak A real-world example: someone sets the header to an empty string or only
PROJECTS/foundations/http-headers-scanner/test_http_headers_scanner.py:126
Functiontest_every_prefix_rule_is_recognized_with_high_confidence
Every entry in PREFIX_RULES produces a HIGH-confidence candidate with the matching algorithm when its prefix sits at the start of the inp
PROJECTS/foundations/hash-identifier/test_hash_identifier.py:531
Functiontest_excel_format_detection
Test format detection for Excel files.
PROJECTS/beginner/metadata-scrubber-tool/tests/integration/test_metadata_factory.py:178
Methodtest_exclude_patterns_populated
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_config.py:29
Methodtest_explicit_timestamp
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_algorithms.py:158
Methodtest_explicit_timestamp
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_algorithms.py:382
Methodtest_extract_accept_encoding
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:185
Methodtest_extract_accept_language
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:178
Methodtest_extract_all
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:231
Methodtest_extract_api_key_header
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:271
Methodtest_extract_api_key_query_param
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:281
Methodtest_extract_basic_ipv4
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:44
Methodtest_extract_jwt_bearer_token
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:246
Methodtest_extract_jwt_bearer_token_hashed
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:256
Methodtest_extract_localhost
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:52
Methodtest_extract_no_auth
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:309
Methodtest_extract_priority_jwt_over_api_key
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:299
Methodtest_extract_private_ip
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:60
Functiontest_extract_returns_all_23_feature_keys
Feature dict contains exactly the 23 per-request keys.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_features.py:102
Methodtest_extract_session_cookie
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:290
Methodtest_extract_user_agent
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:164
Methodtest_extract_user_agent_missing
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:171
Methodtest_factory_allowed
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_types.py:326
Methodtest_factory_authenticated
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_types.py:407
Methodtest_factory_authenticated
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_types.py:520
← previousnext →7,001–7,100 of 8,109, ranked by callers