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

String.toPassword

toPassword()

Description

Convert the string to an encrypted Password object.

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

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

See Also