(self, cipher=None, cipher_len=24)
return result
HH3C Binary to ASCII converter
        XXX: Not complete
        TOOD: Comments! Logic flow! Notes!

        Args:
          @cipher = Encrypted cipher string to convert to ASCII
          @cipher_len = Output length: 24 or 88

        Returns:
          @result = ASCII representation of ciphertext string
HH3C Binary to ASCII converter
        XXX: Not complete
        TOOD: Comments! Logic flow! Notes!
HH3C Binary to ASCII converter XXX : Not complete TOOD : Comments! Logic flow! Notes!
def bintoascii(self, cipher=None, cipher_len=24):
        """
        HH3C Binary to ASCII converter
        XXX: Not complete
        TOOD: Comments! Logic flow! Notes!

        Args:
          @cipher = Encrypted cipher string to convert to ASCII
          @cipher_len = Output length: 24 or 88

        Returns:
          @result = ASCII representation of ciphertext string
        """

        if not isinstance(cipher, str):
            raise HH3CError, 'No cipher string value sent'
            return ""

        a0 = binval       # binary value
        a3 = cipher_len   # length of cipher output
        if a3 == 88:      # set the rotation value
            a1 = 64
        else:
            a1 = 16

        # null out the result register
        result = []
        [result.append('\x00') for c in range(0, a3)]

        a3 = cipher
        t1 = 0
        t0 = 63

        return result
def bintoascii ( self , cipher = None , cipher_len = 24 ) : if not isinstance ( cipher , str ) : raise HH3CError , 'No cipher string value sent' return "" a0 = binval # binary value a3 = cipher_len # length of cipher output if a3 == 88 : # set the rotation value a1 = 64 else : a1 = 16 # null out the result register result = [ ] [ result . append ( '\x00' ) for c in range ( 0 , a3 ) ] a3 = cipher t1 = 0 t0 = 63 return result