#!/usr/bin/python
# -*- coding: utf-8 -*-

from . import MonoSubCipher
from utils.alphabet import *

class AffineCipher(MonoSubCipher):
    def __init__(self, alphabet, m, b):
        """ multiply mx + b """
        # We're cheating here by not actually having the decryption method use the "inverse" argument
        transformed = alphabet.affinal(m, b)
        super(AffineCipher, self).__init__(alphabet, transformed)

39796e6309e0e99e32b0cb513c0144780847dcc9
<mask token>

<mask token>


class AffineCipher(MonoSubCipher):
    <mask token>

<mask token>


class AffineCipher(MonoSubCipher):

    def __init__(self, alphabet, m, b):
        """ multiply mx + b """
        transformed = alphabet.affinal(m, b)
        super(AffineCipher, self).__init__(alphabet, transformed)

from . import MonoSubCipher
from utils.alphabet import *


class AffineCipher(MonoSubCipher):

    def __init__(self, alphabet, m, b):
        """ multiply mx + b """
        transformed = alphabet.affinal(m, b)
        super(AffineCipher, self).__init__(alphabet, transformed)

#!/usr/bin/python
# -*- coding: utf-8 -*-

from . import MonoSubCipher
from utils.alphabet import *

class AffineCipher(MonoSubCipher):
    def __init__(self, alphabet, m, b):
        """ multiply mx + b """
        # We're cheating here by not actually having the decryption method use the "inverse" argument
        transformed = alphabet.affinal(m, b)
        super(AffineCipher, self).__init__(alphabet, transformed)
