Authen::SASL::SASLprep3pm
A stringprep profile for user names and passwords (rfc 4013)
Usage
use Authen::SASL::SASLprep;$output_query = saslprep $input;$output_stored = saslprep $stored;
Overview
This module implements the SASLprep specification, which describes how to prepare Unicode strings representing user names and passwords for comparison. SASLprep is a profile of the stringprep algorithm.
Functions
This module implements a single function, "saslprep", which is exported by default.
- saslprep($input, [$stored]
-
Processes
$inputaccording to the SASLprep specification and returns the result.If
$inputcontains characters not allowed for SASLprep, it throws an exception (so use"eval"if necessary).If the boolean parameter
$storedis true, an exception is also thrown when characters are not allowed for stored strings (i.e., when characters are unassigned in Unicode 3.2). The default is to prepare query strings, in which unassigned characters are allowed.
Releases
5 releases since Debian 9 (Stretch); the text changed 1 time.