예제 #1
0
 protected function generateSalt()
 {
     $salt = parent::generateSalt();
     $prefix = static::getPrefix();
     $prefix .= str_pad($this->iterations, 2, '0', STR_PAD_LEFT);
     return $prefix . '$' . $salt;
 }
예제 #2
0
 protected function generateSalt()
 {
     $salt = parent::generateSalt();
     return '$5$rounds=' . $this->options['rounds'] . '$' . $salt;
 }
예제 #3
0
파일: MD5.php 프로젝트: chansolo/TeamPass
 protected function generateSalt()
 {
     $salt = parent::generateSalt();
     return '$1$' . $salt;
 }
예제 #4
0
파일: SHA512.php 프로젝트: kyrst/base
 protected function generateSalt()
 {
     $salt = parent::generateSalt();
     return '$6$rounds=' . $this->iterations . '$' . $salt;
 }