How to convert a Java BigInteger constant (encoded as base64) to Python? -


given following java code:

import java.math.biginteger; import java.util.base64; ... string myvar64 = "aqab";  // assume longer.. byte[] myvarb = base64.getdecoder().decode(myvar64); biginteger myvar = new biginteger(1, myvarb); 

how convert code python?

i'm assuming java code written way because java doesn't have bigint literals (i don't know java..) if i'm assuming simple assignment sufficient (perhaps code comment indicating original source string):

myvar = 65537  # int("aqab".decode('base64').encode('hex'), 16) 


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -