HankoXml

A high-performance, strictly secure XML Digital Signature (XML-DSig) library for Ruby, backed by a native Rust extension binding directly to libxmlsec1.

Full XML-DSig Support

Sign and verify Enveloped, Enveloping, and Detached signatures.

Nokogiri Native

Directly patches Nokogiri::XML::Document for seamless .sign! and .verify! calls.

XSW Defense

A robust Policy engine and structural signed?(node) checks defeat XML Signature Wrapping attacks.

Rust-Backed

Memory-safe FFI boundaries, zero shell-outs, and massive performance gains over pure-Ruby cryptography.