Getting Started
Requirements
Bruce requires Java 21. That’s it. That’s the whole requirement.
You also need to understand basic cryptography concepts. If you need a refresher, I suggest Cryptography Engineering and Applied Cryptography, both by Bruce Schneier.
Setup
Bruce 2.1.0 is available on Maven Central.
Maven
Add the following dependency to your pom.xml:
<dependency>
<groupId>com.mirkocaserta.bruce</groupId>
<artifactId>bruce</artifactId>
<version>2.1.0</version>
</dependency>
Gradle (Kotlin DSL)
Add the following to your build.gradle.kts:
implementation("com.mirkocaserta.bruce:bruce:2.1.0")
Gradle (Groovy DSL)
Add the following to your build.gradle:
implementation 'com.mirkocaserta.bruce:bruce:2.1.0'
Scala SBT
libraryDependencies += "com.mirkocaserta.bruce" % "bruce" % "2.1.0"
Apache Ivy
<dependency org="com.mirkocaserta.bruce" name="bruce" rev="2.1.0"/>