[upd] Keygen Intellij ›

[upd] Keygen Intellij ›

public static void main(String[] args) throws Exception KeyPair kp = generate("secp256r1"); System.out.println("EC Public (Base64): " + java.util.Base64.getEncoder().encodeToString(kp.getPublic().getEncoded()));

// Simple demo main method public static void main(String[] args) throws Exception KeyPair kp = generate(2048); System.out.println("Public key (Base64):"); System.out.println(java.util.Base64.getEncoder() .encodeToString(kp.getPublic().getEncoded())); System.out.println("\nPrivate key (Base64):"); System.out.println(java.util.Base64.getEncoder() .encodeToString(kp.getPrivate().getEncoded())); keygen intellij

After editing the build file, IntelliJ will automatically import the changes (look for the “Refresh” button in the Maven/Gradle tool window). System.out.println("Public key (Base64):")

import java.security.*;

public class EcKeyGen