Skip to content

Conversation

@cyb3rjerry
Copy link
Contributor

Description

This pull request adds a new hash algorithm: DJB2 with lowercase Conversion.

Algorithm Details

Name: DJB2 with Uppercase Conversion
Description: A variant of the DJB2 hash algorithm that converts lowercase letters to uppercase. The initial hash value is 1572, and the hash is updated using the formula: hash_value = (hash_value * 33) & 0xFFFFFFFF.
Type: unsigned_int
Test Case: The hash of the string 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789' is 0xd87d4bef.

Verification

The algorithm passes Flake8 style checks.
The algorithm passes the repository's test suite.

Sample

df0d4ba2e0799f337daac2b0ad7a64d80b7bcd68b7b57d2a26e47b2f520cc260

@herrcore herrcore merged commit 7d38d1d into OALabs:main Jun 4, 2025
1 check passed
@cyb3rjerry cyb3rjerry deleted the feat/djb2_lower branch June 4, 2025 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants