Login   Register  
PHP Classes
elePHPant
Icontem

File: src/eMacros/Package/HashPackage.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Emmanuel Antico  >  eMacros  >  src/eMacros/Package/HashPackage.php  >  Download  
File: src/eMacros/Package/HashPackage.php
Role: Class source
Content type: text/plain
Description: Class source
Class: eMacros
PHP LISP language interpreter
Author: By
Last change:
Date: 2014-01-13 05:17
Size: 646 bytes
 

Contents

Class file image Download
<?php
namespace eMacros\Package;

use 
eMacros\Runtime\PHPFunction;

class 
HashPackage extends Package {
    public function 
__construct() {
        
parent::__construct('Hash');
        
        
//hashing functions
        
$this['md5'] = new PHPFunction('md5');
        
$this['md5-file'] = new PHPFunction('md5_file');
        
$this['sha1'] = new PHPFunction('sha1');
        
$this['sha1-file'] = new PHPFunction('sha1_file');
        
        
//hash only
        
$this['hash'] = new PHPFunction('hash');
        
$this['file'] = new PHPFunction('hash_file');
        
$this['init'] = new PHPFunction('hash_init');
        
$this['update'] = new PHPFunction('hash_update');
        
$this['final'] = new PHPFunction('hash_final');
    }
}
?>