Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Gnu Privacy Guard and You (Math-sanitized version)

Gnu Privacy Guard and You (Math-sanitized version)

This talk highlights why GPG is more relevant than ever in a modern age where government spying is the norm and no one on the internet can be trusted. We also take a dive in to how the RSA public key algorithm works at its core and how you can get started with GPG *today*.

Ariejan de Vroom

May 16, 2014
Tweet

More Decks by Ariejan de Vroom

Other Decks in Technology

Transcript

  1. Symmetric Key Encryption a b c d e f g

    h i j k l m n o p q r s t u v w x y z | | | | | | | | | | | | | | | | | | | | | | | | | | c d e f g h i j k l m n o p q r s t u v w x y z a b "a secret massage".encrypt # => "c ugetgv ocuucig"
  2. Symmetric Key Decryption c d e f g h i

    j k l m n o p q r s t u v w x y z a b | | | | | | | | | | | | | | | | | | | | | | | | | | a b c d e f g h i j k l m n o p q r s t u v w x y z "c ugetgv ocuucig".decrypt # => "a secret massage"
  3. ??? a b c d e f g h i

    j k l m n o p q r s t u v w x y z | | | | | | | | | | | | | | | | | | | | | | | | | | n o p q r s t u v w x y z a b c d e f g h i j k l m
  4. ROT13 a b c d e f g h i

    j k l m n o p q r s t u v w x y z | | | | | | | | | | | | | | | | | | | | | | | | | | n o p q r s t u v w x y z a b c d e f g h i j k l m "Hello World".rot13.rot13.rot13.rot13 #=> "Hello World"
  5. Why does RSA work? e*d = 1 mod ϕ(n) Public

    Key: [e,n] Private Key: [d, n] def encrypt(message, e, n) (message ** e) % n end def decrypt(message, d, n) (message ** d) % n end
  6. GnuPG Field Guide 1.Don't panic! 2.Get GPGTools for Mac or

    brew install gpg2 3.Setup your own keys 4.Exchange and sign keys (with trust) 5.Spread the word!
  7. THANKS! » https://ariejan.net » [email protected] » @ariejan GPG Public Key

    » http://aj.gs/pubkey 8450 D928 4373 164E 25CC 7E0D AD73 9154 F713 697B