File "adodb-encrypt-sha1.php"

Full path: E:/sites/Single15/tinmung2007/webroot/XAMMP/php/pear/adodb/session/adodb-encrypt-sha1.php
File size: 405 B
MIME-type:
Charset: utf-8

Download   Open   Back

<?php
if (!defined('ADODB_SESSION')) die();

include_once ADODB_SESSION . '/crypt.inc.php';


/**

 */

class ADODB_Encrypt_SHA1 {

	function write($data, $key) 
	{
		$sha1crypt = new SHA1Crypt();
		return $sha1crypt->encrypt($data, $key);

	}


	function read($data, $key) 
	{
		$sha1crypt = new SHA1Crypt();
		return $sha1crypt->decrypt($data, $key);

	}
}



return 1;
?>

PHP File Manager