Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created May 26, 2021 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgolubyev/c4f8d8cf713f6f5c3764b552bdcd4b8c to your computer and use it in GitHub Desktop.
Save lgolubyev/c4f8d8cf713f6f5c3764b552bdcd4b8c to your computer and use it in GitHub Desktop.
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