cvs: presentations / encryption-vancouver.xml xdebug-montreal.xml /slides/encryption algorithms.xml asymmetric.png asymmetric.xml blowfish.png
caesar.png cbc.png cfb.png ecb.png hash-2104.xml hash-example.xml hash.png hash.xml hash2.png isthisaboutphp.xml mode-cfb.xml mode-ecb.xml modes.xml
ofb.png quote-1337.xml quote-fail.xml quote-false.xml quote-gov.xml quote-perl.xml resources.xml rotational.xml symmetric.png symmetric.xml title.xml
transposition.xml whycrypt.xml xor.png

From: Date: Sun, 18 Jan 2004 22:15:39 +0000
Subject: cvs: presentations / encryption-vancouver.xml xdebug-montreal.xml /slides/encryption algorithms.xml asymmetric.png asymmetric.xml blowfish.png
caesar.png cbc.png cfb.png ecb.png hash-2104.xml hash-example.xml hash.png hash.xml hash2.png isthisaboutphp.xml mode-cfb.xml mode-ecb.xml modes.xml
ofb.png quote-1337.xml quote-fail.xml quote-false.xml quote-gov.xml quote-perl.xml resources.xml rotational.xml symmetric.png symmetric.xml title.xml
transposition.xml whycrypt.xml xor.png
Groups: php.pres 
Request: Send a blank email to pres+get-935@lists.php.net to get a copy of this message
derick Sun Jan 18 17:15:39 2004 EDT Added files: /presentations encryption-vancouver.xml /presentations/slides/encryption algorithms.xml asymmetric.png asymmetric.xml blowfish.png caesar.png cbc.png cfb.png ecb.png hash-2104.xml hash-example.xml hash.png hash.xml hash2.png isthisaboutphp.xml mode-cfb.xml mode-ecb.xml modes.xml ofb.png quote-1337.xml quote-fail.xml quote-false.xml quote-gov.xml quote-perl.xml resources.xml rotational.xml symmetric.png symmetric.xml title.xml transposition.xml whycrypt.xml xor.png Modified files: /presentations xdebug-montreal.xml Log: - Offline backup of presentation on encryption stuff

Index: presentations/xdebug-montreal.xml diff -u presentations/xdebug-montreal.xml:1.1 presentations/xdebug-montreal.xml:1.2 --- presentations/xdebug-montreal.xml:1.1 Tue Jan 13 07:56:46 2004 +++ presentations/xdebug-montreal.xml Sun Jan 18 17:15:38 2004 @@ -52,6 +52,8 @@ <slide>slides/xdebug/gdb-xml.xml</slide> <slide>slides/xdebug/dbgp.xml</slide> +<!-- <slide>slides/xdebug/vim.xml</slide> --> + <slide>slides/xdebug/resources.xml</slide> </presentation> Index: presentations/encryption-vancouver.xml +++ presentations/encryption-vancouver.xml <presentation template="php" navmode="html" navbarbackground="#4373b4" navColor="#f1fbff" logo1="presentations/slides/xdebug/ez.png" stylesheet="presentations/slides/xdebug/style.css" backgroundfixed="1" > <topic>PHP</topic> <title>Playing Safe</title> <event>Vancouver PHP Conference</event> <location>Vancouver, Canada</location> <date>January 22nd, 2004</date> <speaker>Derick Rethans</speaker> <email>derick@php.net</email> <url>http://pres.derickrethans.nl/encryption-vancouver</url> <slide>slides/encryption/title.xml</slide> <slide>slides/xdebug/questions.xml</slide> <!-- Crypto Intro --> <slide>slides/encryption/whycrypt.xml</slide> <slide>slides/encryption/quote-gov.xml</slide> <slide>slides/encryption/algorithms.xml</slide> <slide>slides/encryption/rotational.xml</slide> <slide>slides/encryption/transposition.xml</slide> <slide>slides/encryption/quote-perl.xml</slide> <slide>slides/encryption/asymmetric.xml</slide> <!-- Hash functions --> <slide>slides/encryption/hash.xml</slide> <slide>slides/encryption/hash-example.xml</slide> <slide>slides/encryption/hash-2104.xml</slide> <!-- Symmetric --> <slide>slides/encryption/symmetric.xml</slide> <slide>slides/encryption/quote-1337.xml</slide> <slide>slides/encryption/modes.xml</slide> <slide>slides/encryption/mode-ecb.xml</slide> <slide>slides/encryption/mode-cfb.xml</slide> <slide>slides/encryption/quote-fail.xml</slide> <slide>slides/encryption/resources.xml</slide> </presentation> Index: presentations/slides/encryption/algorithms.xml +++ presentations/slides/encryption/algorithms.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Cipher groups</title> <break lines="8"/> <list fontsize="5em"> <bullet>Rotational (ceasar)</bullet> <bullet>Transposition (xor)</bullet> <bullet>Symmetric (DES, Blowfish, AES)</bullet> <bullet>Asymmetric (RSA, Diffie Hellman)</bullet> <bullet>Hashes</bullet> </list> </slide> Index: presentations/slides/encryption/asymmetric.xml +++ presentations/slides/encryption/asymmetric.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Asymmetric ciphers</title> <break lines="2"/> <image align="center" filename="asymmetric.png"/> <list fontsize="4em"> <bullet>Key to encrypt is *different* as the key to decrypt</bullet> </list> <list fontsize="4em"> <bullet>ElGamal, Diffie Hellman, RSA</bullet> </list> <list fontsize="4em"> <bullet>Used for signatures and key distribution</bullet> </list> </slide> Index: presentations/slides/encryption/hash-2104.xml +++ presentations/slides/encryption/hash-2104.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Crypt_MHAC example</title> <break lines="1"/> <example fontsize="1.7em"><![CDATA[<?php require_once 'Crypt/HMAC.php'; $hash = new Crypt_HMAC('SECRETKEY', 'sha1'); if (isset($_COOKIE['stamp'])) { if ($_COOKIE['stamp'] == $hash->hash($_COOKIE['data'])) { echo "Validated!\n"; } else { echo "<blink>Not validated</blink>"; } } else { $_COOKIE['data'] = '00110100011'; $_COOKIE['stamp'] = $hash->hash($_COOKIE['data']); } ?>]]></example> <list fontsize="4em"> <bullet>%pear install Crypt_HMAC%</bullet> <bullet>RFC 2104 implementation</bullet> <bullet>MD5 and SHA1 supported</bullet> </list> </slide> Index: presentations/slides/encryption/hash-example.xml +++ presentations/slides/encryption/hash-example.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Hash Example</title> <break lines="3"/> <example fontsize="1.7em"><![CDATA[<?php if (isset($_COOKIE['stamp'])) { if ($_COOKIE['stamp'] == sha1($_COOKIE['data'] . 'SECRETKEY')) { echo "Validated!\n"; } else { echo "<blink>Not validated</blink>"; } } else { $_COOKIE['data'] = '00110100011'; $_COOKIE['stamp'] = sha1($_COOKIE['data'] . 'SECRETKEY'); } ?>]]></example> <break/> <list fontsize="4em"> <bullet>Easy validation of cookie data</bullet> <bullet>But not the 'best' way</bullet> </list> </slide> Index: presentations/slides/encryption/hash.xml +++ presentations/slides/encryption/hash.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Hash algorithms</title> <break lines="2"/> <image align="center" filename="hash.png"/> <list fontsize="4em"> <bullet>Not reversable</bullet> </list> <list fontsize="4em"> <bullet>PHP: sha1(), md5(); mhash: GOST, HAVAL</bullet> </list> <image align="right" marginright="5em" filename="hash2.png"/> <list fontsize="4em"> <bullet>Used for in signatures and validation</bullet> </list> </slide> Index: presentations/slides/encryption/isthisaboutphp.xml +++ presentations/slides/encryption/isthisaboutphp.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Question</title> <break lines="12"/> <blurb align="center" fontsize="7em">Is this session about PHP or what?</blurb> </slide> Index: presentations/slides/encryption/mode-cfb.xml +++ presentations/slides/encryption/mode-cfb.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="3em"> <title>CFB and OFB</title> <break lines="1"/> <image align="center" filename="cfb.png"/> <list marginleft="-2em" fontsize="3em" marginright="2em"> <bullet type="none">CFB: text is xor'ed with the encrypted output of the IV; cipher output is new IV for next block</bullet> </list> <break lines="1"/> <image align="center" filename="ofb.png"/> <list marginleft="-2em" fontsize="3em" marginright="2em"> <bullet type="none">OFB: text is xor'ed with the encrypted output of the IV; encrypted output is new IV for next block</bullet> </list> </slide> Index: presentations/slides/encryption/mode-ecb.xml +++ presentations/slides/encryption/mode-ecb.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="3em"> <title>ECB and CBC</title> <break lines="1"/> <image align="center" filename="ecb.png"/> <list marginleft="-2em" fontsize="3em" marginright="2em"> <bullet type="none">ECB: each block encrypted independently</bullet> </list> <break lines="1"/> <image align="center" filename="cbc.png"/> <list marginleft="-2em" fontsize="3em" marginright="2em"> <bullet type="none">CBC: text block is xor'ed with previous encrypted block</bullet> </list> </slide> Index: presentations/slides/encryption/modes.xml +++ presentations/slides/encryption/modes.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Modes</title> <break lines="3"/> <blurb fontsize="5em">Different encryption modes:</blurb> <list marginleft="-2em" fontsize="3.5em" marginright="2em"> <bullet>ECB (Electronic CodeBook)</bullet> <bullet marginleft="1em" type="none">each block encrypted independently</bullet> <bullet>CBC (Cipher Block Chaining)</bullet> <bullet marginleft="1em" type="none">text block is xor'ed with previous encrypted block</bullet> <bullet>CFB (Cipher FeedBack)</bullet> <bullet marginleft="1em" type="none">text is xor'ed with the encrypted output of the IV; cipher output is new IV for next block</bullet> <bullet>OFB (Output FeedBack)</bullet> <bullet marginleft="1em" type="none">text is xor'ed with the encrypted output of the IV; encrypted output is new IV for next block</bullet> </list> </slide> Index: presentations/slides/encryption/quote-1337.xml +++ presentations/slides/encryption/quote-1337.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Quote</title> <break lines="9"/> <blurb fontsize="5em">I've found one, and only one practical application for "13375p33k"</blurb> <blurb fontsize="5em">Secure passwords</blurb> <blurb align="right" fontsize="4em">~Anonymous on IRC~</blurb> </slide> Index: presentations/slides/encryption/quote-fail.xml +++ presentations/slides/encryption/quote-fail.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Quote</title> <break lines="9"/> <blurb fontsize="5em">"most security failures in its area of interest are due to failures in implementation, not failure in algorithms or protocols"</blurb> <blurb align="right" fontsize="4em">~The NSA~</blurb> </slide> Index: presentations/slides/encryption/quote-false.xml +++ presentations/slides/encryption/quote-false.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Quote</title> <break lines="9"/> <blurb fontsize="5em">A *false* sense of security is worse than being unsure.</blurb> <blurb align="right" fontsize="4em">~grc.com~</blurb> </slide> Index: presentations/slides/encryption/quote-gov.xml +++ presentations/slides/encryption/quote-gov.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Quote</title> <break lines="9"/> <blurb fontsize="5em">"People who are willing to rely on the government to keep them safe are pretty much standing on Darwin's mat, pounding on the door, screaming, 'Take me, take me!'"</blurb> <blurb align="right" fontsize="4em">~Carl Jacobs, Alt.Sysadmin.Recovery~</blurb> </slide> Index: presentations/slides/encryption/quote-perl.xml +++ presentations/slides/encryption/quote-perl.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Quote</title> <break lines="15"/> <blurb fontsize="5em">"Perl - The only language that looks the same before and after RSA encryption."</blurb> <blurb align="right" fontsize="4em">~Keith Bostic~</blurb> </slide> Index: presentations/slides/encryption/resources.xml +++ presentations/slides/encryption/resources.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Resources</title> <break lines="1" /> <image align="center" filename="blowfish.png" /> <break lines="2" /> <link fontsize="3em" marginleft="2em" leader="These Slides: " href="http://pres.derickrethans.nl" target="_new"/> <link fontsize="3em" marginleft="2em" leader="Xdebug site: " href="http://xdebug.org" target="_new"/> <link fontsize="3em" marginleft="2em" leader="DBGp specification: " href="http://xdebug.org/docs-dbgp.php" target="_new"/> <break lines="3" /> <link fontsize="3em" marginleft="2em" leader="PHP: " href="http://www.php.net" target="_new"/> <link fontsize="3em" marginleft="2em" leader="Questions?: " href="derick@xdebug.org" target="_new"/> </slide> Index: presentations/slides/encryption/rotational.xml +++ presentations/slides/encryption/rotational.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Rotational ciphers</title> <image align="center" filename="caesar.png"/> <list fontsize="5em" marginleft="-0.3em"> <bullet>Rotate characters depending on key</bullet> </list> <list fontsize="5em" effect="slide"> <bullet>Easy to crack unless key is same size as plain text</bullet> </list> <list fontsize="5em" effect="slide"> <bullet>But we always have str_rot13() :-)</bullet> </list> </slide> Index: presentations/slides/encryption/symmetric.xml +++ presentations/slides/encryption/symmetric.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Symmetric ciphers</title> <break lines="2"/> <image align="center" filename="symmetric.png"/> <list fontsize="4em"> <bullet>Key to encrypt is the same as the key to decrypt</bullet> </list> <list fontsize="4em"> <bullet>mcrypt: DES, Blowfish, Rijndael (AES)</bullet> </list> <list fontsize="4em"> <bullet>Used for session keys and in secure environment</bullet> </list> <list fontsize="4em"> <bullet>*Not* used for key distribution</bullet> </list> </slide> Index: presentations/slides/encryption/title.xml +++ presentations/slides/encryption/title.xml <slide template="titlepage" fontsize="3.5em"> <title>Welcome!</title> <image align="center" filename="blowfish.png" /> </slide> Index: presentations/slides/encryption/transposition.xml +++ presentations/slides/encryption/transposition.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide> <title>Transposition ciphers</title> <break lines="3"/> <list fontsize="5em"> <bullet>XOR plain text with key</bullet> </list> <list fontsize="5em"> <bullet>Easy to crack with small key</bullet> </list> <list fontsize="5em"> <bullet>Impossible to crack when<![CDATA[<br />&nbsp;&nbsp;&nbsp;]]>strlen(plain) == strlen(key)</bullet> </list> <break lines="3"/> <image align="center" filename="xor.png"/> </slide> Index: presentations/slides/encryption/whycrypt.xml +++ presentations/slides/encryption/whycrypt.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Why use encryption?</title> <list> <bullet></bullet> </list> </slide>
« previous php.pres (#935) next »