From b1a239f75771cc5756adc0281ae034317e3cadb8 Mon Sep 17 00:00:00 2001 From: sangge <2251250136@qq.com> Date: Thu, 31 Aug 2023 14:01:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B5=8B=E8=AF=95flag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crypto/easy_base/cipher.txt | 1 + crypto/easy_base/easy_base.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 crypto/easy_base/cipher.txt diff --git a/crypto/easy_base/cipher.txt b/crypto/easy_base/cipher.txt new file mode 100644 index 0000000..5fa378e --- /dev/null +++ b/crypto/easy_base/cipher.txt @@ -0,0 +1 @@ +QmFzZTY0IGlzIGEgZ3JvdXAgb2YgYmluYXJ5LXRvLXRleHQgZW5jb2Rpbmcgc2NoZW1lcyB0aGF0IHJlcHJlc2VudCBiaW5hcnkgZGF0YS4gQW5kIGZsYWcgaXMgZmxhZ3sxMTExMTExMTExMX0= \ No newline at end of file diff --git a/crypto/easy_base/easy_base.py b/crypto/easy_base/easy_base.py index 420dd96..0921f62 100644 --- a/crypto/easy_base/easy_base.py +++ b/crypto/easy_base/easy_base.py @@ -8,4 +8,7 @@ cipher = base64.b64encode(plain_text) plain_text = base64.b64decode(cipher) print(cipher) -print(plain_text) \ No newline at end of file +print(plain_text) +with open("cipher.txt","w") as f: + f.write(cipher.decode()) + \ No newline at end of file