from Crypto.Cipher import AES

class crypto:
    def __init__(self):
        key = '6543210987654321'
        iv = '1234567890123456'
        self.aes = AES.new(key, AES.MODE_CBC, iv)
    def encrypt(self, data):
        self.data = data.encode('utf-8')
        if (len(self.data) % 16 != 0):
            while True:
                
                if (len(self.data) % 16 == 0):
                    break
                
                self.data += b'\0'
        hasil = self.aes.encrypt(self.data)
        return hasil
    def decrypt(self, data):
        self.data = data
        hasil1 = self.aes.decrypt(self.data)
        hasil1 = hasil1.rstrip(b'\0')
        hasil1 = hasil1.decode('utf-8')
        return hasil1
    
    
text = """
import sys
import os
import string
from threading import Thread
import daemon
import time
import math

"""

print(crypto().encrypt(text))
