Key management methods done but not tested. Crypto methods to be written