Internationalization and localization tools


ANSI Encryption Function

char *crypt(const char *key, const char *salt);

char *crypt_r(const char *key, const char *salt, struct crypt_data * data);

Internationalization (I18n) Function Overview

The crypt function takes a password, key, as a string, and a salt character array, and returns a printable ASCII string which starts with another salt. It is believed that, given the output of the function, the best way to find a key that will produce that output is to guess values of key until the original value of key is found.

The crypt_r function does the same thing as crypt, but takes an extra parameter which includes space for its result (among other things), so it can be reentrant.

I18n Issues

These functions are designed to work specifically with 8-bit character data. Therefore, the data for these functions should be left as char and not promoted to wchar_t if migrating to a wide character application.

Recommended Replacements*

*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.

ANSI Encryption Functions

 

Lingoport internationalization and localization services and software