def get_cache_encrypt_key(key):
    """Prepare key for use with crypto libs.
    :param key: Passphrase used for encryption.
    """
    key += (16 - len(key) % 16) * '-'
    return key.encode('utf-8')
