import binascii


def hex_to_base64(hex_string): 
	"""
	Cryptopals 1.1
	Convert a hexidecimal string to a base64 string

	>>> hex_to_base64(b'49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d')
	b'SSdtIGtpbGxpbmcgeW91ciBicmFpbiBsaWtlIGEgcG9pc29ub3VzIG11c2hyb29t'
	"""
	return binascii.b2a_base64(binascii.unhexlify(hex_string))[:-1]