String StringUtil::Crypt(const String& input, const char *salt /* = "" */) { if (salt && salt[0] == '\0') { raise_notice("crypt(): No salt parameter was specified." " You must use a randomly generated salt and a strong" " hash function to produce a secure hash."); } return String(string_crypt(input.c_str(), salt), AttachString); }
String StringUtil::Crypt(CStrRef input, const char *salt /* = "" */) { return String(string_crypt(input.c_str(), salt), AttachString); }