Data protection SDK for Java — format-preserving encryption (FF1/FF3), AES-GCM, data masking, and hashing.
<dependency>
<groupId>io.cyphera</groupId>
<artifactId>cyphera</artifactId>
<version>0.0.1-alpha.2</version>
</dependency>Available on Maven Central.
import io.cyphera.Cyphera;
// Auto-discover: checks CYPHERA_POLICY_FILE env, ./cyphera.json, /etc/cyphera/cyphera.json
Cyphera c = Cyphera.load();
// Or load from a specific file
Cyphera c = Cyphera.fromFile("./config/cyphera.json");
// Protect
String encrypted = c.protect("123-45-6789", "ssn");
// → "T01i6J-xF-07pX" (tagged, dashes preserved)
// Access (tag-based, no policy name needed)
String decrypted = c.access(encrypted);
// → "123-45-6789"{
"policies": {
"ssn": { "engine": "ff1", "key_ref": "my-key", "tag": "T01" }
},
"keys": {
"my-key": { "material": "2B7E151628AED2A6ABF7158809CF4F3C" }
}
}All six SDKs produce identical output for the same inputs:
Input: 123-45-6789
Java: T01i6J-xF-07pX
Rust: T01i6J-xF-07pX
Node: T01i6J-xF-07pX
Python: T01i6J-xF-07pX
Go: T01i6J-xF-07pX
.NET: T01i6J-xF-07pX
Alpha. API is unstable. Cross-language test vectors validated against Rust, Node, Python, Go, and .NET implementations.
Apache 2.0 — Copyright 2026 Horizon Digital Engineering LLC