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: dbb4f7e8-04e7-4c7b-bdc8-0a7245fba2b1
UUID 2: 36adf527-4aa7-4e5a-9d3e-3866a2dcdbfb
✓ UUIDs are unique and properly formatted
✓ GUID alias works correctly

2. Password Hashing (BCrypt)

Password: SuperSecretPassword123!
$2a$10$ujCA.kmpJUdjiTrBjbgH2OSZFPSLzDFRJDhTPfplv70ERKRcnPUbG
✓ 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: fbd7891862c4cd9005aef4b14b661b0f
Derived Key: 0b51353cc2920a9b38caad1895c2dbf7cd39a73902ab67d737a30f136aa6f12f
✓ PBKDF2-SHA256 works correctly

9. Secure Random Generation

Random Hex (32 bytes): 3fb89fb60ab2ed424ae73109d41d4a852da3366172364ef3722712ef04494c0d
✓ RandomHex works correctly
Random Base64 (24 bytes): Tdg9/2Q4tAneWstw1TxRU0kdHeiq8bhH
✓ 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!