work on encryption of the keyfile