public static async Task <string> TryDecryptFileAsync(this ICipher cipher, string file) { try { return(await cipher.DecryptFileAsync(file)); } catch (DecryptionFailedException) { return(null); } }
public static async Task <string> TryDecryptFileAsync(this ICipher cipher, string file) { try { return(await cipher.DecryptFileAsync(file)); } catch (DecryptionFailedException) { return(null); } }