ipcrypt2 0.1.0

IP address obfuscation library for D


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:

d-ipcrypt2

Static Badge Latest release Artifacts

A D bindings of IPCrypt2, a simple and secure IP address obfuscation scheme.

IPCrypt2 is a format-preserving encryption scheme for IPv4 and IPv6 addresses. It allows IP addresses to be encrypted while maintaining their format, making it suitable for logging and data retention purposes where IP addresses need to be pseudonymized.

Features:

  • Format-preserving encryption for both IPv4 and IPv6 addresses
  • Cryptographically secure using AES-256 as the underlying cipher
  • Preserves subnets: addresses sharing a prefix are encrypted to addresses sharing the same prefix
  • Deterministic: same input and key always produces the same output
  • Fast and constant-time operation

Known Implementations

NameLanguage
Reference implementationPython
ipcrypt2C
rust-ipcrypt2Rust
ipcrypt-jsJavaScript
go-ipcryptGo
zig-ipcryptZig

Acknowledgements

  • jedisct1 - for the original implementation
Authors:
  • Matheus Catarino França
Dependencies:
none
Versions:
0.1.3 2025-Apr-24
0.1.2 2025-Apr-22
0.1.1 2025-Apr-22
0.1.0 2025-Apr-22
Show all 4 versions
Download Stats:
  • 0 downloads today

  • 6 downloads this week

  • 6 downloads this month

  • 6 downloads total

Score:
0.5
Short URL:
ipcrypt2.dub.pm