KHA-256 Documentation
Performance-Sacrificed, Security-Maximized Hash Algorithm
Contents
API Reference
- kha256 package
- KEÇECİ HASH ALGORITHM (KEÇECİ HASH ALGORİTMASI), KHA-256
KHA256KHA256bFortifiedKhaHash256FortifiedKhaHash256.KEY_SIZEFortifiedKhaHash256.NONCE_SIZEFortifiedKhaHash256.hash()FortifiedKhaHash256.get_cache_stats()FortifiedKhaHash256.clear_cache()FortifiedKhaHash256.deterministicFortifiedKhaHash256.test_avalanche_effect()FortifiedKhaHash256.test_collision_resistance()FortifiedKhaHash256.test_uniformity()FortifiedKhaHash256.get_stats()FortifiedKhaHash256.get_security_report()
OptimizedKhaHash256SecureKhaHash256HybridKhaHash256SimpleKhaHasherShake256HasherTrueMemoryHardHasherCoreEngineCoreHashDeterministicEngineDeterministicHashMemoryHardEngineMemoryHardHashFortifiedKhaCorePerformanceOptimizedKhaCoreMockCoreStreamingKHA256FortifiedConfigFortifiedConfig.VERSIONFortifiedConfig.ALGORITHMFortifiedConfig.output_bitsFortifiedConfig.hash_bytesFortifiedConfig.iterationsFortifiedConfig.roundsFortifiedConfig.components_per_hashFortifiedConfig.salt_lengthFortifiedConfig.shuffle_layersFortifiedConfig.diffusion_roundsFortifiedConfig.avalanche_boostsFortifiedConfig.use_enhanced_avalancheFortifiedConfig.enable_quantum_mixFortifiedConfig.enable_diffusion_mixFortifiedConfig.triple_compressionFortifiedConfig.memory_hardeningFortifiedConfig.enable_byte_distribution_optimizationFortifiedConfig.byte_uniformity_roundsFortifiedConfig.time_varying_saltFortifiedConfig.context_sensitive_mixingFortifiedConfig.enable_side_channel_resistanceFortifiedConfig.enable_constant_time_opsFortifiedConfig.enable_arithmetic_blindingFortifiedConfig.memory_cost_kbFortifiedConfig.time_costFortifiedConfig.parallelismFortifiedConfig.memory_costFortifiedConfig.cache_enabledFortifiedConfig.cache_sizeFortifiedConfig.cache_ttlFortifiedConfig.cache_hmac_protectedFortifiedConfig.cache_deterministicFortifiedConfig.parallel_processingFortifiedConfig.max_workersFortifiedConfig.enable_memory_hard_modeFortifiedConfig.double_hashingFortifiedConfig.enable_encryption_layerFortifiedConfig.encryption_roundsFortifiedConfig.enable_hamming_weight_balancingFortifiedConfig.target_hamming_weightFortifiedConfig.chi_square_optimizationFortifiedConfig.min_bit_biasFortifiedConfig.max_bit_correlationFortifiedConfig.enable_case_aware_mixingFortifiedConfig.case_sensitivity_boostFortifiedConfig.ascii_case_amplificationFortifiedConfig.case_diffusion_factorFortifiedConfig.security_levelFortifiedConfig.expected_performance_msFortifiedConfig.avalanche_targetFortifiedConfig.to_dict()
OptimizedFortifiedConfigMemoryHardConfigMemoryHardConfig.memory_cost_kbMemoryHardConfig.time_costMemoryHardConfig.parallelismMemoryHardConfig.enable_sequential_memory_fillMemoryHardConfig.enable_memory_dependency_chainMemoryHardConfig.memory_access_patternMemoryHardConfig.target_memory_bandwidth_utilizationMemoryHardConfig.max_cpu_utilizationMemoryHardConfig.cache_enabledMemoryHardConfig.parallel_processingMemoryHardConfig.max_workers
TrueMemoryHardConfigTrueMemoryHardConfig.memory_cost_kbTrueMemoryHardConfig.time_costTrueMemoryHardConfig.parallelismTrueMemoryHardConfig.cache_enabledTrueMemoryHardConfig.parallel_processingTrueMemoryHardConfig.max_workersTrueMemoryHardConfig.enable_memory_hard_fillTrueMemoryHardConfig.memory_fill_algorithmTrueMemoryHardConfig.double_hashingTrueMemoryHardConfig.triple_compressionTrueMemoryHardConfig.target_memory_bandwidth_utilization
SecurityConstantsSecurityLayersMathematicalSecurityBasesByteDistributionOptimizerTransformFunctionsHardwareSecurityIDHardwareSecurityID2KHAcacheKHA256UtilsKHAUtilsKha256SecureStorageKHA256UnicodeHasherSimpleRateLimiterRateLimiterDemoUISecureLoginSystemMockAuthSystemMemoryHardDemoMemoryHardDemo.users_dbMemoryHardDemo.mock_memory_hard_hash()MemoryHardDemo.normal_hash()MemoryHardDemo.demo_registration()MemoryHardDemo.demo_login()MemoryHardDemo.demo_brute_force_analysis()MemoryHardDemo.demo_performance()MemoryHardDemo.demo_security_levels()MemoryHardDemo.list_users()MemoryHardDemo.interactive_menu()MemoryHardDemo.show_info()
secure_hash_password()safe_hash_password()hash_password()hash_password_str()verify_password()batch_hash_secure()batch_hash_xxh64()quick_hash()quick_hash_raw()quick_hash_sha256()quick_hash_blake3()quick_hash_128()safe_quick_hash()ultra_fast_hash()ultra_fast_hash_hex()ultra_fast_hash_int_to_hex()fast_hash_int()fastest_cache_key()xxh64_hash()fnv1a_64()djb2_optimized()shake256_hash()shake256_128()shake256_256()shake256_512()gizli_turkce_hash()fixed_gfh_password()hash_argon2id()hash_bcrypt()hash_pbkdf2()hwid_hash()generate_hwid()generate_compact_hwid()generate_secure_hwid()simple_hmac()image_signature()run_all_tests()run_cli_demo()run_comprehensive_test()run_comprehensive_test_suite()performance_comparison()economic_analysis()secure_password_hashing()show_rate_limiter_info()dbtest_shake256()test_kha256_main()test_kha256b()test_khautils()test_basic_functionality()test_core_hash()test_deterministic_hash()test_memory_hard_engine()test_memory_hard_hash()test_memory_hard_real()test_memory_hardness()test_true_memory_hard()test_true_memory_hard_direct()test_fortified_hashers()test_fortified_memory_hard()test_fortified_memory_hard2()test_fortified_memory_hard_fixed()test_hmac()test2_hmac()test_streaming()test2_streaming()test_avalanche()test2_avalanche()test_edge_cases()test_parameter_impact()test_performance_scenarios()test_real_world_scenarios()test_security_scenarios()avalanche_test()comprehensive_avalanche_test()detailed_avalanche_test()cig_test()gpu_resistance_test()min_entropy_test()diagnose_memory_hardness()benchmark_real_cost()plot_avalanche_distribution()safe_heatmap_plot()plot_avalanche_simple()HKDFsecure_compare()xor_bytes()bytes_to_int()int_to_bytes()cal_bit_difference()calculate_bit_difference()chacha_avalanche_mix()secure_avalanche_mix()expose_kha256_bug()generate_fortified_hasher()generate_fortified_hasher_fast()generate_fortified_hasher_secure()generate_fortified_hasher_password()get_hasher_config()measure_hash()measure_time()debug_configs()lru_cache()print_error()print_header()print_info()print_results_table()print_subheader()print_success()print_warning()kha_rastgele_sayi()rastgele_sayi()kha256_fortified_random()kha256_password_random()kha256_memory_hard_random()kha256_hard_random()true_memory_hard_random()memory_hard_hash_random()memory_hard_engine_random()fortified_kha_random()kha256b_random()scrypt_random()gscrypt_random()bscrypt_random()scrypt_dual_output()is_jupyter()silent_kn()Colorslegacy_function()- Submodules
Additional Resources
Overview
KHA-256 is a 256-bit cryptographic hash function designed with security prioritized over performance.
Quick Example
from kha256 import quick_hash
result = quick_hash("Hello KHA-256!")
print(f"Hash: {result}")