Skip to content

Update crypto dependency to exist-crypto#16

Closed
joewiz wants to merge 1 commit into
eXistSolutions:mainfrom
joewiz:fix/use-exist-crypto
Closed

Update crypto dependency to exist-crypto#16
joewiz wants to merge 1 commit into
eXistSolutions:mainfrom
joewiz:fix/use-exist-crypto

Conversation

@joewiz
Copy link
Copy Markdown

@joewiz joewiz commented Apr 21, 2026

Summary

Why

The JWT module depends on the EXPath Crypto Module for crypto:hmac(). The old package (http://expath.org/ns/crypto) hasn't been tested with eXist-db 7.0. The new exist-crypto module provides the same XQuery function namespace (http://expath.org/ns/crypto) and the same crypto:hmac() function, but with a different EXPath package URI.

The XQuery import in jwt.xqm is unchanged — only the package dependency declaration in expath-pkg.xml changes.

New package

The exist-crypto XAR can be downloaded from:
https://github.com/joewiz/exist-crypto/releases

[This response was co-authored with Claude Code. -Joe]

🤖 Generated with Claude Code

Change package dependency from http://expath.org/ns/crypto (old
expath-crypto-module) to http://exist-db.org/ns/crypto (new
exist-crypto module). Both provide the same function namespace
(http://expath.org/ns/crypto) so the XQuery import is unchanged.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@joewiz
Copy link
Copy Markdown
Author

joewiz commented Apr 21, 2026

[This response was co-authored with Claude Code. -Joe]

Closing this PR — we've changed the exist-crypto package to use the same package URI as the old module (http://expath.org/ns/crypto), making it a direct drop-in replacement at version 7.0.0. JWT's existing dependency on http://expath.org/ns/crypto will resolve to the new package without any changes needed.

See: https://github.com/joewiz/exist-crypto

@joewiz joewiz closed this Apr 21, 2026
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.

1 participant