contributions/usermanagement/behaviour/commands/users/hashes/sha1.hash.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * Calculates an SHA1 hash 00004 * 00005 * @since 0.5.1 00006 * 00007 * @author Gerd Riesselmann 00008 * @ingroup Usermanagement 00009 */ 00010 class Sha1Hash implements IHashAlgorithm { 00011 public function hash($source) { 00012 return sha1($source); 00013 } 00014 00015 public function check($source, $hash) { 00016 return $hash == $this->hash($source); 00017 } 00018 }