# Path: eulfedora/cryptutil.py
# ENCRYPTION_KEY = None
# ENCRYPT_PAD_CHARACTER = b'\0'
#         KEY_MIN_CHARS = 32/8
#         KEY_MAX_CHARS = 448/8
#             ENCRYPTION_KEY = settings.SECRET_KEY
#             ENCRYPTION_KEY = hashlib.sha224(settings.SECRET_KEY).hexdigest()
# def _get_encryption_key():
# def encrypt(text):
# def decrypt(text):
# def to_blocksize(password):
# 
# Path: eulfedora/util.py
# def force_text(s, encoding='utf-8'):
#     if six.PY3:
#         if isinstance(s, bytes):
#             s = six.text_type(s, encoding)
#         else:
#             s = six.text_type(s)
#     else:
#         s = six.text_type(bytes(s), encoding)
# 
#     return s


import unittest
    import django
    from unittest import skipIf
    from unittest2 import skipIf
from eulfedora import cryptutil
from eulfedora.util import force_text
#   Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.

from __future__ import unicode_literals
try:
except ImportError:

try:
except ImportError:
    django = None


# NOTE: cryptutil currently requires django because it imports django
# settings for configuration; probably ok, since this is likely
# only used within django

@skipIf(django is None, 'Requires Django')
class CryptTest(unittest.TestCase):

    def test_to_blocksize(self):
        def test_valid_blocksize(text):

# Path: eulfedora/cryptutil.py
# ENCRYPTION_KEY = None
# ENCRYPT_PAD_CHARACTER = b'\0'
#         KEY_MIN_CHARS = 32/8
#         KEY_MAX_CHARS = 448/8
#             ENCRYPTION_KEY = settings.SECRET_KEY
#             ENCRYPTION_KEY = hashlib.sha224(settings.SECRET_KEY).hexdigest()
# def _get_encryption_key():
# def encrypt(text):
# def decrypt(text):
# def to_blocksize(password):
# 
# Path: eulfedora/util.py
# def force_text(s, encoding='utf-8'):
#     if six.PY3:
#         if isinstance(s, bytes):
#             s = six.text_type(s, encoding)
#         else:
#             s = six.text_type(s)
#     else:
#         s = six.text_type(bytes(s), encoding)
# 
#     return s


# Path: test/test_fedora/test_cryptutil.py
import unittest
    import django
    from unittest import skipIf
    from unittest2 import skipIf
from eulfedora import cryptutil
from eulfedora.util import force_text

#   Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.

from __future__ import unicode_literals
try:
except ImportError:

try:
except ImportError:
    django = None


# NOTE: cryptutil currently requires django because it imports django
# settings for configuration; probably ok, since this is likely
# only used within django

@skipIf(django is None, 'Requires Django')
class CryptTest(unittest.TestCase):

    def test_to_blocksize(self):
        def test_valid_blocksize(text):

            block = cryptutil.to_blocksize(text)