Sometimes all you have is a private key and you need the corresponding public key. Today’s “fun” puzzle: implementing this for a range of key types in Java, using only standard library APIs (no BouncyCastle). Some clever/evil hacks needed.https://codeberg.org/neilmadden/snippets/src/branch/main/PrivateToPublicKeyConverter.java#java #cryptography