Encapsulating compounds for cosmetics