Challenges
Bytes and large numbers
Cryptography
Easy
Encoding
Solves: 8
Bytes and large numbers
Author: CyberSamSU
Points
12
Algorithms like RSA do not work with text, but with numbers. For this reason, the text is first converted into bytes, and then into a single large integer.
Convert the following large integer back into text:
2996810954019985851600914583970284391451647777973659937664161586
3022003253885
Python: n.to_bytes((n.bit_length()+7)//8, 'big') or Crypto.Util.number.long_to_bytes(n)
To submit a flag, log in.