Skip to content

Instantly share code, notes, and snippets.

@ekblom
ekblom / AESGCM.cs
Created March 11, 2016 12:34 — forked from jbtule/AESGCM.cs
I have two code examples that I wrote for best practices encrypting a string in c#. They are both 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;
@ekblom
ekblom / keybase.md
Last active April 6, 2017 15:51
keybase.md

Keybase proof

I hereby claim:

  • I am ekblom on github.
  • I am ekblom (https://keybase.io/ekblom) on keybase.
  • I have a public key ASDlR7aD930rNgMXA7KpWHZ4OFa8U8NNsJtip8J4rN0BFgo

To claim this, I am signing this object: