Hashing -Passwörter in Yii 1

$hash = Yii::$app->getSecurity()->generatePasswordHash($password);
Lovely Lark