Added des3 encription and public key creation.