Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 616 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 616 Bytes
description
Java cryptography made easy

Welcome

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.