mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
15 lines
330 B
Python
15 lines
330 B
Python
import base64
|
|
|
|
|
|
class CryptoHelper:
|
|
def __init__(self, helper):
|
|
self.helper = helper
|
|
self.test = "hello world"
|
|
|
|
def say_hello_world(self):
|
|
print(self.test)
|
|
|
|
@staticmethod
|
|
def bytes_to_b64(input_bytes: bytes) -> str:
|
|
return base64.b64encode(input_bytes).decode("UTF-8").rstrip("\n")
|