Hashish is a sticky , thick , dark-colored resin ( like sap ) which is made from the flower of the female cannabis plant , Cannabis sativa . The cannabis plant 's leaves and flowers contain a chemical or drug known as THC which gives a person who smokes or eats parts of the cannabis plant a feeling of euphoria ( makes the user feel good or happy ) . Like ordinary cannabis preparations , hashish is usually smoked , though it can also be eaten ( more commonly than cannabis plant ) or vaporised .