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