Skip to content

Conversation

@pi0
Copy link
Member

@pi0 pi0 commented Jan 13, 2025

ohash uses a built-in js implementation of sha256 (based on crypto-js) since portability and support for Browsers were the main goal.

With #41, I have experimented SubtleCrypto.digest however async functions seem not to have significant (general) improvements.

This PR uses a different approach of using export conditions with ohash/crypto to switch between Node and JS implementations for hash.

BREAKING CHANGE is mainly a precaution.

@pi0 pi0 marked this pull request as ready for review February 18, 2025 23:30
@pi0 pi0 merged commit c280a0d into main Feb 18, 2025
2 checks passed
@pi0 pi0 deleted the perf/crypto-native branch February 18, 2025 23:30
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