码迷,mamicode.com
首页 > 其他好文 > 详细

Crptopals S1-1

时间:2019-12-07 01:32:19      阅读:92      评论:0      收藏:0      [点我收藏+]

标签:hex   encode   转码   code   crp   com   href   set   bytes   

题目:

https://cryptopals.com/sets/1/challenges/1

转码,hex到base64

x = "0x49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d"
bx = bytes.fromhex(x)
base64.b64encode(bx)

Crptopals S1-1

标签:hex   encode   转码   code   crp   com   href   set   bytes   

原文地址:https://www.cnblogs.com/xuesu/p/12000255.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!