This commit is contained in:
Hell13Cat
2020-11-04 23:09:59 +03:00
committed by GitHub
parent ae3c82a8b4
commit 0f0b81235f
3 changed files with 100 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import base64
def to64(data):
e = base64.b64encode(data)
return e
def from64(data):
d = base64.b64decode(data)
return d
def tobin(data):
b = data.encode("UTF-8")
return b
def frombin(data):
b = data.decode("UTF-8")
return b