Security Tutorial (Java/AnBx)

Security Programming, Protocol Verification and Code Generation
Paolo Modesti -

Security Programming, Protocol Verification and Code Generation

This tutorial takes you from writing your first Java client and server to verifying security protocols with OFMC and generating verified Java implementations with the AnBx compiler.

AnBxJ is a Java library based on the Java Cryptography Architecture (JCA) that provides many cryptographic and communication functions in a simple, effective way.

You will also run experiments to verify the security properties of these protocols, and see how the AnBx compiler turns a verified specification into running Java code.

You will use the command line interface to configure the environment, compile and run Java programs. You may use any editor to edit the source files.

If you are only interested in AnB/AnBx, you can go directly to Part 5 — Security Protocols Modelling and Verification, Part 6 — Automatic Generation of Java Implementations, and Part 7 — Automatic Generation of Specifications and Implementations of Attacks.

In Parts 5–7 we use the Eclipse IDE with the AnBx IDE plugin. Feel free to use Eclipse for all activities. The required configuration for Eclipse is described in Configuring the Eclipse IDE.

Some tasks are marked as optional; if you do not have much time you can skip them.

This tutorial comprises the following parts:

Tools & Libraries - Documentation:

Additional readings:

Publications: