(self, cipher=None)
return ct[:ct.find('\x00')]
Takes an ASCII cipher, turns it into binary string then decrypts
        it with a static keyed DES in ECB mode. DES requires sources to be
        multiples of 8 bytes so pad it if necessary.

        Args:
          @cipher = 24 or 88 length ASCII ciphertext

        Returns:
          @string
Takes an ASCII cipher, turns it into binary string then decrypts
        it with a static keyed DES in ECB mode. DES requires sources to be
        multiples of 8 bytes so pad it if necessary.
Takes an ASCII cipher turns it into binary string then decrypts it with a static keyed DES in ECB mode . DES requires sources to be multiples of 8 bytes so pad it if necessary .
def decipher(self, cipher=None):
        """
        Takes an ASCII cipher, turns it into binary string then decrypts
        it with a static keyed DES in ECB mode. DES requires sources to be
        multiples of 8 bytes so pad it if necessary.

        Args:
          @cipher = 24 or 88 length ASCII ciphertext

        Returns:
          @string
        """
        try:
            binval = self.asciitobin(cipher)
            binval = self.fillbin(binval)
            a = [ord(x) for x in binval]
            #print a
            ct = self.desbox.decrypt(str(binval))
        except HH3CError, e:
            raise HH3CError, e

        # return up to the first null byte
        # XXX: some tests are failing!
        a = [ord(x) for x in ct]
        #print a
        return ct[:ct.find('\x00')]
def decipher ( self , cipher = None ) : try : binval = self . asciitobin ( cipher ) binval = self . fillbin ( binval ) a = [ ord ( x ) for x in binval ] #print a ct = self . desbox . decrypt ( str ( binval ) ) except HH3CError , e : raise HH3CError , e # return up to the first null byte # XXX: some tests are failing! a = [ ord ( x ) for x in ct ] #print a return ct [ : ct . find ( '\x00' ) ]