Java Crypto Libraries

Java Crypto Libraries

...

Cryptography in Java

  • JCA, Bouncy Castle and Web3j:Hashes, ECC and ECDSA

JCA, Bouncy Castle and Web3j

  • Cryptography in Java is based on the Java Cryptography Architecture (JCA)

    • Typical Java style: lot of boilerplate code

  • Bouncy Castle is the leading Java cryptography library

  • Web3j – a simplified library for Ethereum and secp256k1

ECDSA in Java: Install the Crypto Libraries

  • This Maven dependency will install the following libraries:

    • org.web3j.crypto– Ethereum style secp256k1 EC cryptography

    • org.bouncycastle– BouncyCastle crypto provider for Java

ECDSA in Java: Initialize the Application

ECDSA in Java: Generate / Load Keys

ECDSA in Java: Sign Message

ECDSA in Java: Verify Signature

Last updated

Was this helpful?