Version: v0.6.0 - Beta.  We welcome contributors & feedback.  THanks!

String.toPassword

toPassword()

Description

Convert the string to an encrypted Password object.

$plainText = 'Hello';
$password = plainText.toPassword();

print($password);
//= '$2y$10$DolPO9Sa8htv.gAsjUHz8ugsq0R2dXBz...'

See Also