Koha::AuthUtils - utility routines for authentication
use Koha::AuthUtils qw/hash_password/; my $hash = hash_password($password);
This module provides utility functions related to managing user passwords.
my $hash = Koha::AuthUtils::hash_password($password, $settings);
my $salt = Koha::Auth::generate_salt($strength, $length);
For general password salting a
weak is recommend, For generating a server-salt a
strong is recommended
'strong' uses /dev/random which may block until sufficient entropy is acheived. 'weak' uses /dev/urandom and is non-blocking.
$length is a positive integer which specifies the desired length of the returned string
This returns the correct script name, for use in redirecting back to the correct page after showing the login screen. It depends on details of the package Plack configuration, and should not be used outside this context.