Bruce
  • Welcome
  • Essentials
    • Features
    • Getting Started
    • General Concepts
    • Roadmap
  • API
    • Cheat Sheet
    • Key Stores
    • Certificates
    • Keys
    • Digests
    • Signatures
    • Verification
    • Symmetric Ciphers
    • Asymmetric Ciphers
    • Message Authentication Codes
Powered by GitBook
On this page

Was this helpful?

Export as PDF

Welcome

Java cryptography made easy

NextFeatures

Last updated 2 years ago

Was this helpful?

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.

KeyStore keystore = keystore("classpath:keystore.p12", "password");
PrivateKey privateKey = privateKey(keystore, "alice", "password");
EncodingSigner signer = signer(privateKey, "SHA512withRSA", BASE64);
String signature = signer.sign("Hi Bob!");

Bruce tries to reduce boilerplate to a minimum, so you can focus on your code.