code establish updates google stable browsing api
in method establish information opening , calculate summary authentication formula (mac) any update. instructions (from google) are:
the mac computed an md5 digest
over following information:
client_key|separator|table
data|separator|client_key. the
separator string:coolgoog: -
colon followed "coolgoog"
followed colon. resulting
128-bit md5 digest websafe base-64
encoded.
there's also instance information check against:
client key: "8eirwn1ktwczgwa2hxtarq=="
response:
[goog-black-hash 1.180 update][mac=dralftu+bxwuhlk0ncgjtq==]
+8070465bdf3b9c6ad6a89c32e8162ef1
+86fa593a025714f89d6bc8c9c5a191ac
+bbbd7247731cbb7ec1b3a5814ed4bc9d
*note there tabs during finish any line.
i'm amateurish match. greatfully presumably indicate out where i'm going wrong, only integrate lines python formula required this!
fwiw, i approaching means something this:
>>> s = "+8070465bdf3b9c6ad6a89c32e8162ef1\t\n+86fa593a025714f89d6bc8c9c5a191ac\t\n+bbbd7247731cbb7ec1b3a5814ed4bc9d\t"
>>> c = "8eirwn1ktwczgwa2hxtarq=="
>>> hashlib.md5("%s%s%s%s%s" % (c, ":coolgoog:", s, ":coolgoog:", c)).digest().encode("base64")
'qfb50mxphrs82ytofpkceg==\n'
but see, 'qfb50mxphrs82ytofpkceg==\n' != 'dralftu+bxwuhlk0ncgjtq=='.
Comments
Post a Comment