Example #1
0
 /**
  * Constructor
  * 
  * @param  string         $name    The hash to wrap 
  * @param  Md5WeakHasher  $hasher  A hasher
  */
 public function __construct($hash, Md5WeakHasher $hasher)
 {
     parent::__construct($hash, $hasher, '/^[\\da-zA-Z]{32}$/');
 }
Example #2
0
 /**
  * Constructor
  * 
  * @param  string         $name    The hash to wrap 
  * @param  Sha1WeakHasher  $hasher  A hasher
  */
 public function __construct($hash, Sha1WeakHasher $hasher)
 {
     parent::__construct($hash, $hasher, '/^[\\da-zA-Z]{40}$/');
 }