Logo Search packages:      
Sourcecode: acidbase version File versions  Download package

Cpdf::encryptInit ( id )

initialize the encryption for processing a particular object

Definition at line 1098 of file class.pdf.php.

References ARC4_init(), and md5_16().

Referenced by o_action(), o_contents(), o_image(), and o_info().

  $tmp = $this->encryptionKey;
  $hex = dechex($id);
  if (strlen($hex)<6){
    $hex = substr('000000',0,6-strlen($hex)).$hex;
  $tmp.= chr(hexdec(substr($hex,4,2))).chr(hexdec(substr($hex,2,2))).chr(hexdec(substr($hex,0,2))).chr(0).chr(0);
  $key = $this->md5_16($tmp);

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index