从字节转换为int再到int到字节

发布于 2025-01-24 20:02:11 字数 986 浏览 2 评论 0原文

v = b'f \ xf4y%\ xfe \ x1b \ x8f \ xaa \ x1fy \ xd0 \ xd0 \ xbf> \ x03 \ x04t} c \ xb2a} c \ xb2a} \ x13 \ x13# xd8 \ xb4 \ xad \ x9e \ x99 \ xfd \ x9bv \ xca \ xcd \ xcd \ x1b“ \ xde \ xcd \ xcd \ xd1 \ xAct \ xf0 \ xf0 \ xf0! $ \ xe8b \ xf5h \ x8f \ xcaa \ x9c \ x83 \ xdciil \ xab \ x98! x06 \ xa5 \ x1ax \ xb3f! \ \ xe7 \ x9f \ xba3o \ xacs \ xc3 \ x94h \ xed \ xa1 \ xc9 \ x01q \ xf5 \ xcbm \ xdbm \ xdbn:\ xda \ x00 \ x00 DD \ x0b6 \\ xf3 \ x9az \ xa4oh \ x01 \ x96) eqq \ xf7 \ x06 \ x86 \ xc4 \ x0e(h \ xe3,〜\ xef | 6 \ xced {b \ xa2 \ x8d \ xcb \ x85 \ x85 \ x85 \ xd7h \ xd7h \ xb0 \ xa2 \ xdf \ x9e- z \ xa5)\ x1f \ xea \ xa2 \ x86 \ x86 \ xf9 \ x90y \ xc5^2 \ xdb \ xdb \ xe1 \ xe1 \ x12 \ x12 \ x12 \ x05 \ x05 |@xb6p |@xb6p} \ x8d \ xde \ x80 \ xea \ xb7 \ xb7 \ x9e \ xc2 @'

我已经从AES加密中获得了这个很长的结果,因为我无法识别它是什么格式。进入整数,这样我就可以将其转换为二进制 例如,如果从将上述字节输入到整数中获得1234 生病将其转换为0001,0010,0011,0100,然后将其隐藏起来,然后再将其从图像转换到1234的回报很容易...但是我想构造此1234返回到Bytes String(返回到Aescipher)

v=b'F\xf4Y%\xfe\x1b\x8f\xaa\x1fY\xd0\xbf>\x03\x04t}C\xb2A}\x13#\xffw\x13\xcf\xfbb\x83\xdc\xc44\xd8\xb4\xad\x9e\x99\xfd\x9bv\xca\xcd\x1b"\xde\xcd\xd1\xact\xf0!E\x0b\xe0\x17\xac\xe7\x1e\x13 \x88\xa8$\xe8B\xf5h\x8f\xcaA\x9c\x83\xdciiL\xab\x98!\x0b$f\x02\x0b\xce\x1a\x14\xe9\x05"\x1d\xdd\xf86\x1fi\x13\x06\xa5\x1aX\xb3f!R\xab\x9d\xb6]r\xd8q\xb5+\x82\t\x06HU\xd4\xb2X\xe2\x0ca\x08\xcf\x92\xdc\xf3\xd4\x94Wf\xe7\x9f\xba3o\xacs\xc3\x94H\xed\xa1\xc9\x01q\xf5\xcbm\xdbn:\xda\x00\xbf\x87\xf1\xc3\xa4\x1a5*;\x8c\xde\xdd\x0b6\\xf3\x9aZ\xa4OH\x01\x96)V\xebv\xd4\x8b\xb3q\xef\xaa1\xa9\x0c\x9a>\x123\x10\xda\xfc\x0e\x1a\xcc\x0eQQ\xf7\x06\x86\xc4\x0e(h\xe3,~\xef|6\xceD{b\xa2\x8d\xcb\x85\xd7h\xb0\xf2^Hz\xf1C\xd6*SA\x80P\xb9F\xa2\xdf\x9e- z\xa5)\x1f\xea\xa2\x86\xf9\x90y\xc5^2\xdb\xe1\x12\x05|@\xb6P}\xf9H\xb4O\x9d\x8f\xdf\x8d\xde\x80\xea\xb7\x9e\xc2 @'

I've got this long result from AES encryption as intermediate result .I couldn't identify what format it is....thing is I want to convert this into integers ,so that I can convert it into binary to use for steganography
for example if get 1234 from from typecasting the above bytes into integer
ill convert it into 0001,0010,0011,0100 then hide these and again when i obtain these back from the image conversion to 1234 is easy ...but I want to construct this 1234 back to bytes string(back to aescipher)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文