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 correctly2. Password Hashing (BCrypt)
Password: SuperSecretPassword123!
$2a$10$ujCA.kmpJUdjiTrBjbgH2OSZFPSLzDFRJDhTPfplv70ERKRcnPUbG
✓ Password hash generated3. Password Verification
✓ Correct password verified successfully✓ Incorrect password rejected correctly✓ Hash/Verify aliases work correctly4. Bcrypt Cost Configuration
Original cost: 10
New cost: 12
✓ Bcrypt cost configuration works✓ Bcrypt cost property access works5. Modern Hash Algorithms (Hex Output)
| Algorithm | Hash (hex) | Status |
|---|
| SHA-256 | 7c7515f9345f782b1e10333a4bd4b230ed029fddf59b07df558c09a8125faee1 | ✓ |
| SHA-512 | 21461868ef8c3a4c68c3cdca933c848d91dc9982fafedfeed9ce458a7222dda3... | ✓ |
| SHA3-256 | dee9ee010e4db79310bdc8b7ac8cf862eefaa5cf58f14d52393751674ac1d30e | ✓ |
| BLAKE2b-256 | 6fda51598c7acd22643ed244a4848f5d2c6e9144fdf8ca748ca88dc72e1de3ba | ✓ |
| 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 correctly7. 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 correctly8. PBKDF2 Key Derivation
Salt: fbd7891862c4cd9005aef4b14b661b0f
Derived Key: 0b51353cc2920a9b38caad1895c2dbf7cd39a73902ab67d737a30f136aa6f12f
✓ PBKDF2-SHA256 works correctly9. Secure Random Generation
Random Hex (32 bytes): 3fb89fb60ab2ed424ae73109d41d4a852da3366172364ef3722712ef04494c0d
✓ RandomHex works correctlyRandom Base64 (24 bytes): Tdg9/2Q4tAneWstw1TxRU0kdHeiq8bhH
✓ RandomBase64 works correctlyRandom Bytes: 16 bytes generated
✓ RandomBytes works correctly10. .NET Crypto Provider Compatibility
MD5CryptoServiceProvider hash size: 16 bytes
HashSize property: 128 bits
✓ MD5CryptoServiceProvider works correctlySHA256CryptoServiceProvider hash size: 32 bytes
✓ SHA256CryptoServiceProvider works correctlySHA512CryptoServiceProvider hash size: 64 bytes
✓ SHA512CryptoServiceProvider works correctly11. CreateObject Alias Names
✓ 'CRYPTO' alias worksTest Summary
Total Tests: 25
Passed: 25
Failed: 0
Success Rate: 100,00%
✓ ALL TESTS PASSED!