Convert a big endian byte-ordered binary string to an integer or long.
(binstr)
| 37 | |
| 38 | |
| 39 | def bin_to_num(binstr): |
| 40 | """ |
| 41 | Convert a big endian byte-ordered binary string to an integer or long. |
| 42 | """ |
| 43 | return int.from_bytes(binstr, byteorder="big", signed=False) |
| 44 | |
| 45 | |
| 46 | def urlsafe_b64encode(s): |
no outgoing calls