简体   繁体   中英

URLConnection Basic Authorization with hashed password

I want to open URLConnection to a page that use 'Basic' authentication (Digest method = SHA1).

I only have the hashed password, how can I open the connection?

If the password is hashed using the same algorithm as the HTTP authorization scheme just send the hashed password. If it's hashed with a different algorithm you're out of luck.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM