salt[2] = '$';
salt[2] = 'a'; salt[3] = '$';
encode_salt(char *salt, u_int8_t *csalt, u_int16_t clen, u_int8_t logr)#elsestatic voidencode_salt(salt, csalt, clen, logr)	char   *salt;	u_int8_t *csalt;	u_int16_t clen;	u_int8_t logr;#endif{	salt[0] = '$';	salt[1] = BCRYPT_VERSION;	salt[2] = '$';	snprintf(salt + 3, 4, "%2.2u$", logr);	encode_base64((u_int8_t *) salt + 6, csalt, clen);}