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 correctly2. Password Hashing (BCrypt)
Password: SuperSecretPassword123!
$2a$10$QuYaT5EPmxmm9THovGVTC.nwEgXbIA2FuCgYqjM81DvMuhW0YAvNm
✓ 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: f993258aa5e451570331c1074f92d187
Derived Key: 7723f6a72dc397951b91e29c086492cd9a676b29bdeb590e976c2d4e98bf1767
✓ PBKDF2-SHA256 works correctly9. Secure Random Generation
Random Hex (32 bytes): dd8036c025014befe95a6d386d0169bd80f4c07bb01733c028c6f1a5b2fc9488
✓ RandomHex works correctlyRandom Base64 (24 bytes): 8wjsmwtiLFH0nk9FnPq10RQKUFZ1yZl1
✓ 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!