Skip to content
Advertisement

Tag: encode

Encoding Hash in javascript gives different result compared to python

I am trying to convert a javascript program into python but I am getting different results, after creating the hash they are the same but after encoding the results they are way off the python one as it is much longer then the javascript version. Javascript result: ‘DqnyGCG5qW5DPceKe1p7fFyFxqdXrqZhQiN2Ukp-2h0’ Python result: ‘NGQ4MWNiYWY3NzgyZmIyZjE3YWEzNWQyNGE1Mjg4M2M2ZmI1MmQxNGE4MDFmNDMxM2FkZWRlOTE1NjVhZGU0YQ’ Javascript Python Answer You encoded two different things between

Advertisement