htdigest file format

后端 未结 3 960
野的像风
野的像风 2020-12-18 02:39

I\'m trying to write some code to work with an htdigest password file. The documentation I can find seems to claim that the format of that file is:

user:real         


        
3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-18 03:02

    Hm, I seem to have answered my own question. My test case was flawed, 'echo' is adding extra characters (not sure which). For instance

    echo a:b:c | wc
    

    gives 6 characters instead of 5. Calculating the hash at http://md5-hash-online.waraxe.us/ gives the correct value. Sorry everyone!

提交回复
热议问题