I am trying to generate this kind of hashes programmatically:
But I can't identify what kind of hash it is. The hash comes from a .htpasswd file.
All the online htpasswd generators I tried generates different type of hashes.
It's CRYPT encryption - an old default. You should probably use MD5 or SHA instead - see
How are you trying to generate your passwords? You could run
The second parameter is the salt. As Gerard points out it's better to use a random string as salt.