PHP Classes

File: adodb/session/adodb-encrypt-sha1.php

Recommend this page to a friend!
  Classes of Isaac Trenado Mx   PHP MySQL JSON Manager   adodb/session/adodb-encrypt-sha1.php   Download  
File: adodb/session/adodb-encrypt-sha1.php
Role: Auxiliary script
Content type: text/plain
Description: ADOBPHP Download for more information
Class: PHP MySQL JSON Manager
Build and Execute SQL queries with results in JSON
Author: By
Last change:
Date: 8 years ago
Size: 405 bytes
 

Contents

Class file image Download
<?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;
?>