Implementet create/save/load master key