# Simple Conversion Writer : [Laikaさん](https://twitter.com/ki4l_) [Wanictf top](https://hackmd.io/bHFMMX0PQIqhd6IjAv5Otg) Problem --- 戻しかたを忘れました... `convert.py` ```python= from const import flag def bytes_to_integer(x: bytes)-> int: x = int.from_bytes(x,byteorder="big") return x print(bytes_to_integer(flag)) ``` Output --- `output.txt` `709088550902439876921359662969011490817828244100611994507393920171782905026859712405088781429996152122943882490614543229 ` Solve --- 問題でFlagであるバイナリを整数に変換しているので、その逆をやる ```python= output = '略' def integer_to_bytes(x:int) -> bytes: x = x.to_bytes(64,byteorder="big") return x print(integer_to_bytes(output)) ``` Flag --- `FLAG{7h1s_i5_h0w_we_c0nvert_m3ss@ges_1nt0_num63rs}` ###### tags: `CTF` `CRYPTO` `WRITEUP` `WANICTF`