Cheap Web Hosting for Developers

PHP, MySQL, Java, Unix Cheap Web Hosting

150 Chapter 4 Web Application Concepts Listing 4.4.

Filed under: PHP Web Hosting — webmaster @ 21:32

150 Chapter 4 Web Application Concepts Listing 4.4. Continued return(false); } $contents = fread($fp, filesize($temp_file)); fclose($fp); // Delete the temporary file unlink($temp_file); // Return the encrypted contents return($contents); } function encrypt($file, $my_user_id, $to_user_id) { $file = $this->_check_file($file); $ret = $this->_exec_pgp_command( -e -u $my_user_id -a $file . $to_user_id ); return($ret); } function sign($file, $my_user_id) { $file = $this->_check_file($file); $ret = $this->_exec_pgp_command( -s -a -u $my_user_id $file ); return($ret); } function encrypt_sign($file, $my_user_id, $to_user_id) { $file = $this->_check_file($file); $ret = $this->_exec_pgp_command( -es -a -u $my_user_id $file .$to_user_id ); return($ret); } function encrypt_conventional($file, $passphrase) { $file = $this->_check_file($file); $ret = $this->_exec_pgp_command( -c -a -z $passphrase $file ); return($ret); } function decrypt($file, $my_user_id) { $file = $this->_check_file($file); $ret = $this->_exec_pgp_command( -c $file -u $my_user_id );

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Inexpensive Web Hosting services

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URI

Sorry, the comment form is closed at this time.

Powered by Cheap Web Hosting