improved 'repo_set_password' in file_edit & events
[events] fixed bug for encrypted repo