Class CryptoUtils

java.lang.Object
pt.unl.fct.di.novasys.babel2.utils.CryptoUtils

public final class CryptoUtils extends Object
Cryptographic utility methods used by the Babel framework for node key generation and identity management.

By default, Babel uses Ed25519 public key cryptography for high performance and strong security guarantees across distributed nodes.

  • Field Details

    • DEFAULT_KEY_ALGORITHM

      public static final String DEFAULT_KEY_ALGORITHM
      The default asymmetric digital signature algorithm ("Ed25519") used for Babel node cryptographic keys.
      See Also:
  • Method Details

    • generateKeyPair

      public static KeyPair generateKeyPair()
      Generates a new asymmetric cryptographic KeyPair using the default algorithm ("Ed25519").
      Returns:
      a newly generated KeyPair containing a public and private key
      Throws:
      IllegalArgumentException - if the underlying Java security provider does not support "Ed25519"