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