# Path: auxlib/crypt.py
#     AES_BLOCK_SIZE = AES.block_size
# AES_KEY_SIZE = 32   # 32 byte key size ==> AES-256
# HMAC_SIG_SIZE = hashlib.sha256().digest_size
# def encrypt(secret_key, data):
# def decrypt(secret_key, encryption_key_encrypted, encrypted_data):
# def as_base64(content):
# def from_base64(content):
# def generate_encryption_key():
# def generate_hash_from_secret(secret):
# def aes_encrypt(base64_encryption_key, data):
# def aes_decrypt(base64_encryption_key, base64_data):
# def _pad(s):
# def _unpad(s):
# def _extract_keys(key_str):
# 
# Path: auxlib/crypt.py
#     AES_BLOCK_SIZE = AES.block_size
# AES_KEY_SIZE = 32   # 32 byte key size ==> AES-256
# HMAC_SIG_SIZE = hashlib.sha256().digest_size
# def encrypt(secret_key, data):
# def decrypt(secret_key, encryption_key_encrypted, encrypted_data):
# def as_base64(content):
# def from_base64(content):
# def generate_encryption_key():
# def generate_hash_from_secret(secret):
# def aes_encrypt(base64_encryption_key, data):
# def aes_decrypt(base64_encryption_key, base64_data):
# def _pad(s):
# def _unpad(s):
# def _extract_keys(key_str):


from unittest import TestCase
from auxlib import crypt
from auxlib.crypt import AuthenticationError, encrypt, decrypt
import os
# -*- coding: utf-8 -*-




class TestBase64Encoding(TestCase):

    def test_encode(self):
        test_str = "Mickey Mouse"
        result_str = "TWlja2V5IE1vdXNl".encode('UTF-8')

# Path: auxlib/crypt.py
#     AES_BLOCK_SIZE = AES.block_size
# AES_KEY_SIZE = 32   # 32 byte key size ==> AES-256
# HMAC_SIG_SIZE = hashlib.sha256().digest_size
# def encrypt(secret_key, data):
# def decrypt(secret_key, encryption_key_encrypted, encrypted_data):
# def as_base64(content):
# def from_base64(content):
# def generate_encryption_key():
# def generate_hash_from_secret(secret):
# def aes_encrypt(base64_encryption_key, data):
# def aes_decrypt(base64_encryption_key, base64_data):
# def _pad(s):
# def _unpad(s):
# def _extract_keys(key_str):
# 
# Path: auxlib/crypt.py
#     AES_BLOCK_SIZE = AES.block_size
# AES_KEY_SIZE = 32   # 32 byte key size ==> AES-256
# HMAC_SIG_SIZE = hashlib.sha256().digest_size
# def encrypt(secret_key, data):
# def decrypt(secret_key, encryption_key_encrypted, encrypted_data):
# def as_base64(content):
# def from_base64(content):
# def generate_encryption_key():
# def generate_hash_from_secret(secret):
# def aes_encrypt(base64_encryption_key, data):
# def aes_decrypt(base64_encryption_key, base64_data):
# def _pad(s):
# def _unpad(s):
# def _extract_keys(key_str):


# Path: tests/test_crypt.py
from unittest import TestCase
from auxlib import crypt
from auxlib.crypt import AuthenticationError, encrypt, decrypt
import os

# -*- coding: utf-8 -*-




class TestBase64Encoding(TestCase):

    def test_encode(self):
        test_str = "Mickey Mouse"
        result_str = "TWlja2V5IE1vdXNl".encode('UTF-8')

        self.assertEqual(crypt.as_base64(test_str),