[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/phpgwapi/js/jsolait/doc/ -> crypto.xhtml (source)

   1  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   2  <html xmlns="http://www.w3.org/1999/xhtml">
   3    <head>
   4      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   5      <title>.: jsolait :. | documentation | crypto</title>
   6      <link rel="stylesheet" type="text/css" href="./html.css" />
   7      <meta name="author" content="Jan-Klaas Kollhof" />
   8      <meta name="keywords" content="jsolait.crypto" />
   9    </head>
  10    <body>
  11      <a name="top" id="top"></a>
  12      <div class="navigationBar"><a href="./index.xhtml">documentation</a> | 
  13                      crypto</div>
  14      <div class="menu">
  15        <ul></ul>
  16        <div class="copyright">copyright © 2004, Jan-Klaas Kollhof</div>
  17      </div>
  18      <div class="content">
  19           <h1>Module crypto</h1>
  20           This module adds cryptographic services to jsolait.
  21           <br />
  22           
  23           <div class="contentItem"><h2>public members:<a class="bttop" href="#top">â–²</a></h2><div>
  24                
  25                   <h3>listEncrypters()</h3><div class="indent">
  26                                Returns an Array of all available encrypter names.<br />
  27                   </div>
  28                   <h3>listDecrypters()</h3><div class="indent">
  29                                Returns an Array of all available decrypter names.<br />
  30                   </div>
  31           </div></div>
  32           
  33           <div class="contentItem"><h2>globals:<a class="bttop" href="#top">â–²</a></h2><div>
  34                
  35                   <h3>String::encrypt(crydec)</h3><div class="indent">
  36                                Encrypts a string using the encrypter specified by the <code>crydec</code>.<br />
  37                              All parameters but the <code>crypdec</code> parameter are forwardet to the encrypter.<br />
  38                   </div>
  39                   <h3>String::decrypt(crydec)</h3><div class="indent">
  40                                Decrypts a string using the decrypter specified by the <code>crydec</code>.<br />
  41                              All parameters but the <code>crypdec</code> parameter are forwardet to the decrypter.<br />
  42                   </div>
  43                   <h3>String::encrypt_xor(key)</h3><div class="indent">
  44                                Encrypts a string by  XOR.<br />
  45                                The whole String will be XORed with the <code>key</code> parameter. <br />
  46                                If the key is shorter than the String then it will be multiplied to fit the length of the String.<br />
  47                   </div>
  48                   <h3>String::decrypt_xor</h3><div class="indent">
  49                                Decrypts a string using XOR.<br />
  50                              Since XORing is symetric it is the same as the encrypter.<br />
  51                   </div>
  52                   <h3>String::encrypt_rc4(key)</h3><div class="indent">
  53                                Encrypts a string using the ARC4 algorithm.<br />
  54                               The key is a String and can be of any length.
  55                   </div>
  56                   <h3>String::decrypt_rc4</h3><div class="indent">
  57                                Decrypts a string using the ARC4 algorithm.<br />
  58                              Since it is symetric it is the same as the encrypter.<br />
  59                   </div>
  60           </div></div>
  61           
  62           <div class="contentItem"><h2>encrypters/decrypters<a class="bttop" href="#top">â–²</a></h2><div>
  63              
  64              Currently there are only two encrypters/decrypters <b>xor</b> and <b>rc4</b>.<br />
  65              If you want to add your own at runtime just extend the Stringl class by adding a 
  66              <code>String.prototype.encrypt_yourEncrypter</code> or
  67              <code>String.prototype.decrypt_yourDecrypter</code> method.
  68          </div></div>
  69          
  70       </div>
  71    </body>
  72  </html>


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7