コード例 #1
0
ファイル: Password.class.php プロジェクト: rhymix/rhymix
 public function createHash($password, $algorithm = null)
 {
     return Rhymix\Framework\Password::hashPassword($password, $algorithm);
 }
コード例 #2
0
ファイル: member.model.php プロジェクト: rhymix/rhymix
 /**
  * @brief Create a hash of plain text password
  * @param string $password_text The password to hash
  * @param string $algorithm The algorithm to use (optional, only set this when you want to use a non-default algorithm)
  * @return string
  */
 function hashPassword($password_text, $algorithm = null)
 {
     return Rhymix\Framework\Password::hashPassword($password_text, $algorithm);
 }