def decrypt_data(encrypted_data, key, cipher_type)
			vect = [0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f]
			iv = vect.pack("C*")
			key = hextobin(Digest::MD5.hexdigest(key))
			encrypted_data = hextobin(encrypted_data)
			aes = OpenSSL::Cipher::Cipher.new(cipher_type)
			aes.decrypt
			aes.key = key
			aes.iv = iv if iv != nil
			dy = aes.update(encrypted_data) + aes.final  
			return dy
		end
def decrypt_data(encrypted_data, key, cipher_type)
			vect = [0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f]
			iv = vect.pack("C*")
			key = hextobin(Digest::MD5.hexdigest(key))
			encrypted_data = hextobin(encrypted_data)
			aes = OpenSSL::Cipher::Cipher.new(cipher_type)
			aes.decrypt
			aes.key = key
			aes.iv = iv if iv != nil
			dy = aes.update(encrypted_data) + aes.final  
			return dy
		end
decryption