Bruce
Search…
Welcome
Java cryptography made easy
Bruce is an ergonomic, lightweight, pure Java wrapper around the Java Cryptography API.

Show Me the Code

Sure. Here's an example for base64 encoded digital signatures.
1
KeyStore keystore = keystore("classpath:keystore.p12", "password");
2
PrivateKey privateKey = privateKey(keystore, "alice", "password");
3
EncodingSigner signer = signer(privateKey, "SHA512withRSA", BASE64);
4
String signature = signer.sign("Hi Bob!");
Copied!
Bruce tries to reduce boilerplate to a minimum so you can focus on your code.
Last modified 4mo ago
Export as PDF
Copy link