logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Authen::SASL::SASLprep - A Stringprep Profile for User Names and Passwords (RFC 4013)

Author

       Claus Faerber <CFAERBER@cpan.org>

Description

       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 $input according to the SASLprep specification and returns the result.

           If  $input  contains  characters  not  allowed for SASLprep, it throws an exception (so use "eval" if
           necessary).

           If the boolean parameter $stored is 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.

License

       Copyright 2009-2016 Claus Faerber.

       This  library  is  free  software;  you can redistribute it and/or modify it under the same terms as Perl
       itself.

Name

       Authen::SASL::SASLprep - A Stringprep Profile for User Names and Passwords (RFC 4013)

See Also

       Unicode::Stringprep, RFC 4013 <http://www.ietf.org/rfc/rfc4013.txt>

perl v5.36.0                                       2022-11-27                        Authen::SASL::SASLprep(3pm)

Synopsis

         use Authen::SASL::SASLprep;
         $output_query = saslprep $input;
         $output_stored = saslprep $stored;

See Also