saslPrep

fnstring saslPrep(string input) @safe

SASLprep profile (RFC 4013) for password normalization.

Applies the following steps:

  1. Map: non-ASCII spaces to U+0020, "commonly mapped to nothing" removed
  2. Normalize: NFKC
  3. Prohibit: check for prohibited characters
  4. Check bidi: ensure no mixed LTR/RTL without proper framing

For ASCII-only input, returns the string unchanged (fast path).