save public and private key information