Created
May 26, 2021 09:01
-
-
Save lgolubyev/c4f8d8cf713f6f5c3764b552bdcd4b8c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Example (ProtectorHelper protectionHelper) { | |
// This will cause a user's file to be encrypted and expire in 5 hours, that is, after 5 hours it can no longer be decrypted by anyone. | |
var userFile = protectionHelper.Encrypt (fileData, TimeSpan.FromHours (5)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment