public OtpSaveKeyOfFileTask(string keyPath, string filePath) : base(ResourceType.File, keyPath, filePath) { InnerTask = new Task(() => { OtpHelper.GenerateKey(keyPath, filePath); }); }
public CreateOtpPasswordStoreKeyTask(string storeFilePath, string keyPath, bool open) : base(ResourceType.File, keyPath) { InnerTask = new Task(() => { OtpHelper.GenerateKey(keyPath, 1024 * 1024); OtpHelper.Transform(storeFilePath, keyPath); Result.Value = new CreateOtpPasswordStoreKeyTaskResultModel { StorePath = storeFilePath, KeyPath = keyPath, OpenAfter = open }; }); }