Skip to content

Instantly share code, notes, and snippets.

View vadim-kovalyov's full-sized avatar
🇺🇦
🤍❤️🤍

Vadim Kovalyov vadim-kovalyov

🇺🇦
🤍❤️🤍
  • Microsoft
  • Redmond, WA
View GitHub Profile
@vadim-kovalyov
vadim-kovalyov / AESGCM.cs
Last active October 21, 2016 15:52 — forked from jbtule/AESGCM.cs
Two code examples that I borrowed as best practices for encrypting a string in c#. They both are using authenticated encryption. http://stackoverflow.com/a/10366194/637783
/*
* This work (Modern Encryption of a String C#, by James Tuley),
* identified by James Tuley, is free of known copyright restrictions.
* https://gist.github.com/4336842
* http://creativecommons.org/publicdomain/mark/1.0/
*/
using System;
using System.IO;
using System.Text;