G3pix AxonASP - G3CRYPTO Unified Library Test

Comprehensive test of the unified G3CRYPTO library including:

UUID generation, BCrypt password hashing, modern hash algorithms (SHA-256, SHA-512, SHA3, BLAKE2b), HMAC, PBKDF2, secure random generation, .NET compatibility, and bcrypt cost configuration.

1. UUID Generation

UUID 1: cdcc2bec-1131-4df0-8d86-9453f38cd836
UUID 2: 9f8c1040-429d-418a-b4b5-3f7b487739f6
✓ UUIDs are unique and properly formatted
✓ GUID alias works correctly

2. Password Hashing (BCrypt)

Password: SuperSecretPassword123!
$2a$10$QuYaT5EPmxmm9THovGVTC.nwEgXbIA2FuCgYqjM81DvMuhW0YAvNm
✓ Password hash generated

3. Password Verification

✓ Correct password verified successfully
✓ Incorrect password rejected correctly
✓ Hash/Verify aliases work correctly

4. Bcrypt Cost Configuration

Original cost: 10
New cost: 12
✓ Bcrypt cost configuration works
✓ Bcrypt cost property access works

5. Modern Hash Algorithms (Hex Output)

AlgorithmHash (hex)Status
SHA-2567c7515f9345f782b1e10333a4bd4b230ed029fddf59b07df558c09a8125faee1✓
SHA-51221461868ef8c3a4c68c3cdca933c848d91dc9982fafedfeed9ce458a7222dda3...✓
SHA3-256dee9ee010e4db79310bdc8b7ac8cf862eefaa5cf58f14d52393751674ac1d30e✓
BLAKE2b-2566fda51598c7acd22643ed244a4848f5d2c6e9144fdf8ca748ca88dc72e1de3ba✓
MD5 (legacy)c670799ca04c27164d13e2d0b982038a✓
SHA-1 (legacy)cb97f9443f48b7fb4a576e87ba7ed72ddd6c45de✓

6. Hash Byte Array Output

SHA-256 bytes array size: 32 bytes
First 8 bytes: 124 117 21 249 52 95 120 43
✓ Byte array output works correctly

7. HMAC (Hash-based Message Authentication Code)

Message: Authenticated Message
Secret Key: shared-secret-key-123
HMAC-SHA256: 47d91ab98e8c72f62c86154e485e805cedbf14c5a9011f9648890dfc636d8964
✓ HMAC-SHA256 works correctly
✓ HMAC-SHA512 works correctly

8. PBKDF2 Key Derivation

Salt: f993258aa5e451570331c1074f92d187
Derived Key: 7723f6a72dc397951b91e29c086492cd9a676b29bdeb590e976c2d4e98bf1767
✓ PBKDF2-SHA256 works correctly

9. Secure Random Generation

Random Hex (32 bytes): dd8036c025014befe95a6d386d0169bd80f4c07bb01733c028c6f1a5b2fc9488
✓ RandomHex works correctly
Random Base64 (24 bytes): 8wjsmwtiLFH0nk9FnPq10RQKUFZ1yZl1
✓ RandomBase64 works correctly
Random Bytes: 16 bytes generated
✓ RandomBytes works correctly

10. .NET Crypto Provider Compatibility

MD5CryptoServiceProvider hash size: 16 bytes
HashSize property: 128 bits
✓ MD5CryptoServiceProvider works correctly
SHA256CryptoServiceProvider hash size: 32 bytes
✓ SHA256CryptoServiceProvider works correctly
SHA512CryptoServiceProvider hash size: 64 bytes
✓ SHA512CryptoServiceProvider works correctly

11. CreateObject Alias Names

✓ 'CRYPTO' alias works

Test Summary

Total Tests: 25

Passed: 25

Failed: 0

Success Rate: 100,00%

✓ ALL TESTS PASSED!