D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
ensad
/
www
/
gestiondepersonal
/
core
/
lib
/
adodb512
/
session
/
Filename :
adodb-encrypt-sha1.php
back
Copy
<?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; ?>