LIME пишет:http://www.htaccesstools.com/articles/create-password-for-htpasswd-file-using-php/
Это не то. Вот нашел:
Цитата:To receive authorization, the client sends the user-ID and password,
separated by a single colon (":") character, within a base64 [5]
encoded string in the credentials.
basic-credentials = "Basic" SP basic-cookie
basic-cookie = <base64 [5] encoding of userid-password,
except not limited to 76 char/line>
Получается: