题目脚本
This commit is contained in:
11
crypto/easy_base/easy_base.py
Normal file
11
crypto/easy_base/easy_base.py
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import base64
|
||||||
|
|
||||||
|
flag = b"flag{11111111111}"
|
||||||
|
|
||||||
|
plain_text = b"Base64 is a group of binary-to-text encoding schemes that represent binary data. And flag is " + flag
|
||||||
|
|
||||||
|
cipher = base64.b64encode(plain_text)
|
||||||
|
|
||||||
|
plain_text = base64.b64decode(cipher)
|
||||||
|
print(cipher)
|
||||||
|
print(plain_text)
|
||||||
Reference in New Issue
Block a user