Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Help! Please! I want to implement hashing in my python script.

So I was working on a python script to login to mega.co.nz. The problem is, in the post data, mega uses email and hash of email:pass.
I have done hashlib things in python before but this uses some aes algo a little complecated.

I found a site, which has a javascript doing the hashing.

Here is the link for the site.

If site was using some post request to get hash that is needed then I would have done that. But site just uses a javascript which creates hash on the go.

I tried to take that .js and used modules to be able to run it in python. but failed.

Can anyone please help me create a hash function in python that yields the required hash.

Thanks.
you can use https://github.com/davisp/python-spidermonkey
[Image: bitcoin.png] Be Nice For Once 15hVUVz7xA4kazHdk2BuErENGCskVwjYXP
why not use the mega sdk?

https://github.com/meganz/sdk

there are a couple of python examples on there as well

https://github.com/meganz/sdk/tree/maste...les/python

there is also a third party library which might be alittle more user friendly if the sdk is overwhelming

https://github.com/juanriaza/python-mega

Hope this helps.
(Mar 12, 2018 02:53 PM)HFDone Wrote:  you can use https://github.com/davisp/python-spidermonkey

(Mar 12, 2018 03:17 PM)andmuchmore Wrote:  why not use the mega sdk?

https://github.com/meganz/sdk

there are a couple of python examples on there as well

https://github.com/meganz/sdk/tree/maste...les/python

there is also a third party library which might be alittle more user friendly if the sdk is overwhelming

https://github.com/juanriaza/python-mega

Hope this helps.

Thanks guys for the input. I will definitely look into these links after I get back home from a short vacation. SDK looks overwhelming for sure but looks promising..


Possibly Related Threads...
Thread / Author Replies Views Last Post
by nucleo_type09Apr 15, 2024 08:30 AM 4 196 Apr 15, 2024 08:30 AM
Last Post: nucleo_type09
[Python] by Bass_ReevesAug 20, 2023 01:44 AM 9 632 Aug 20, 2023 01:44 AM
Last Post: Lucky4L
[C] by yuumiJun 5, 2022 06:30 PM 22 553 Jun 5, 2022 06:30 PM
Last Post: yuumi