> .htpasswd # this example uses apr1 (Apache MD5) encryption printf "M..." />

способы генерации .htpasswd

# this example uses crypt encryption
printf "John:$(openssl passwd -crypt V3Ry)\n" >> .htpasswd 


# this example uses apr1 (Apache MD5) encryption
printf "Mary:$(openssl passwd -apr1 SEcRe7)\n" >> .htpasswd