uricrypt 0.1.0

Prefix-preserving URI encryption scheme


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

URICrypt

Static Badge Latest release Artifacts

A D library for encrypting URIs while preserving their hierarchical structure and common prefixes.

Features

  • Prefix-Preserving Encryption: URIs with shared paths maintain identical encrypted prefixes, enabling efficient caching and storage
  • Plaintext Scheme: URI schemes (like https://) remain unencrypted for protocol identification
  • Path-Only Support: Can encrypt paths without schemes (e.g., /path/to/file)
  • Deterministic Encryption: Same inputs always produce the same encrypted output
  • URL-Safe Output: Generates clean URLs without padding characters using base64 URL-safe encoding
  • Authenticated Encryption: Each component includes a 16-byte SIV for tamper detection

Instalation

dub add uricrypt

Known Implementations

NameLanguage
rust-uricryptRust
uricrypt.jsJavaScript
zig-uricryptZig

Acknowledgements

  • jedisct1 - for the original implementation
Authors:
  • Matheus Catarino França
Dependencies:
sha3-d
Versions:
0.1.0 2025-Oct-03
Show all 1 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 0 downloads total

Score:
0.4
Short URL:
uricrypt.dub.pm