Skip to content

Enhancement of adding XXH non cryptographic encryption algo#64

Merged
abhimanyu003 merged 7 commits intoabhimanyu003:mainfrom
harsh16coder:main
Aug 26, 2025
Merged

Enhancement of adding XXH non cryptographic encryption algo#64
abhimanyu003 merged 7 commits intoabhimanyu003:mainfrom
harsh16coder:main

Conversation

@harsh16coder
Copy link
Copy Markdown
Contributor

Hi @abhimanyu003 ,

As discussed in xxhash this issue.
This PR implements xxhash64 implementation.

Implemented Transform() method using cespare/xxhash/v2:

  • Computes 64-bit hash of the input.
  • Returns result as a zero-padded 16-character hex string (%016x).

Added below tests to test xxhash64 functionality

  • Standard string input ("Roger federar is not a tennis player")
  • Empty string
  • Single character ("a")
  • Numeric string ("1234567890")
  • Special characters ("!@#$%^&*()_+")
    You can find test results here with zero seed value -> Tests

@harsh16coder harsh16coder requested a review from ccoVeille August 23, 2025 04:21
@harsh16coder harsh16coder changed the title Enhancement of adding xxhash non cryptographic encryption algo Enhancement of adding XXH non cryptographic encryption algo Aug 23, 2025
@abhimanyu003
Copy link
Copy Markdown
Owner

Hello @ccoVeille thanks so much for the review and also many thanks @harsh16coder for adding the PR.
I will check it in detail and merge over the week.

@abhimanyu003 abhimanyu003 merged commit d42a07e into abhimanyu003:main Aug 26, 2025
1 check passed
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.

3 participants