man > Authen::SASL::SASLprep(3pm)

🔐 NAME

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

🚀 Quick Reference

Use CaseCommandDescription
🔎 Prepare a SASL query string$query = saslprep($input);Normalize a Unicode string for SASL authentication queries
🔒 Prepare a stored password$stored = saslprep($password, 1);Normalize a stored credential, disallowing unassigned characters (Unicode 3.2)
⚡ Safe evaluationeval { $prepped = saslprep($input) };Trap invalid characters without crashing the program

📜 SYNOPSIS

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

📖 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.

✍️ AUTHOR

Claus Faerber <CFAERBER AT cpan.org>

📜 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.

🔗 SEE ALSO

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

perl v5.24.1 2016-10-29 Authen::SASL::SASLprep(3pm)

Authen::SASL::SASLprep(3pm)
🔐 NAME 🚀 Quick Reference 📜 SYNOPSIS 📖 DESCRIPTION ⚙️ FUNCTIONS
📋 saslprep($input, [$stored])
✍️ AUTHOR 📜 LICENSE 🔗 SEE ALSO

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-09 12:01 @2600:1f28:365:80b0:60b0:dfa5:fbc9:9f8f
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!