docs: public static KeyPair generateKeyPair(int keySize) throws NoSuchAlgorithmException {
          KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("RSA");
          keyPairGenerator.initialize(keySize);
          KeyPair keyPair = keyPairGenerator.genKeyPair();
          return keyPair;
      }