added the possibility to generate the masterkey password, encrypt it and save it in a b64 encoded file
an initial explanation of how things work