@@ -0,0 +1,1014 @@
+package com.ft.membership.crypto.util;%0A%0Aimport com.ft.membership.crypto.signature.Encoder;%0Aimport sun.security.ec.ECKeyPairGenerator;%0A%0Aimport java.security.KeyPair;%0A%0A/**%0A * A utility class to generate secure public-private key pairs.%0A *%0A * @since 0.1%0A */%0Apublic class KeyPairGenerator %7B%0A%0A    ECKeyPairGenerator ecKeyPairGenerator;%0A    KeyPair keyPair;%0A%0A    public KeyPairGenerator() %7B%0A        ecKeyPairGenerator = new ECKeyPairGenerator();%0A        keyPair = ecKeyPairGenerator.generateKeyPair();%0A    %7D%0A%0A    /**%0A     * Get a base64 encoded String representation of the private key%0A     *%0A     * @return private key%0A     */%0A    public String getBase64EncodedPrivateKey() %7B%0A        return Encoder.getBase64EncodedString(keyPair.getPrivate().getEncoded());%0A    %7D%0A%0A    /**%0A     * Get a base64 encoded String representation of the public key%0A     *%0A     * @return public key%0A     */%0A    public String getBase64EncodedPublicKey() %7B%0A        return Encoder.getBase64EncodedString(keyPair.getPublic().getEncoded());%0A    %7D%0A%7D%0A

Add key pair generation utility