Basic functionnality! Key encryption still to be tested properly