Ich muss ein Passwort für die Verbindung zu einem API-Service berechnen. Die Anforderung ist:Passwort Auth Hashing mit Python 3
Password = base64 encoded(sha1(nonce+created+secret))
where:
nonce = 186269
created = 2015-07-08T11:31:53+01:00
secret = Ok4IWYLBHbKn8juM1gFPvQxadieZmS2
Muss ZDg3MTZiZTgwYTMwYWY4Nzc4OGFjMmZhYjA5YzM3MTdlYmQ1M2ZkMw==
als Passwort zu geben. Ich näherte mit:
psw = hashlib.sha1()
psw.update(b"186269")
psw.update(b"2015-07-08T11:31:53+01:00")
psw.update(b"Ok4IWYLBHbKn8juM1gFPvQxadieZmS2")
enc_psw = base64.b64encode(psw.digest())
aber es mich 2HFr6Aowr4d4isL6sJw3F+vVP9M=
als Ergebnis
Und was ist Ihre Frage? –
@MonkeySupersonic Ich habe meine Frage bearbeitet – twindad