new class to generate key pair public/private