fn encrypted_json_write<T: Serialize + DeserializeOwned>( obj: &T, key: &LessSafeKey, path: &Path, ) -> Result<()>
Writes struct into an encrypted json file