Python Dev
import hashlib with open(passwordfile, 'w', encoding='utf-8') as f:
prefix = '%s:%s:' % (username, realm) value = (prefix + password).encode('utf-8') line = prefix + hashlib.md5(value).hexdigest() print(line, file=f)
Last modified
10个月 ago
Last modified on 2025年2月4日 下午9:59:12
Note:
See TracWiki
for help on using the wiki.
