This is something that should have been added years ago! However, it was possible before via the Alternate CD, which is now gone, of Ubuntu. Moreover, for extra security there's also an option to overwrite empty disk space, which will make the entire installation process a lot longer. Keep in mind though, that any files outside the Ubuntu installation will not be encrypted.
Some of the products that appear on this site are from companies from which QuinStreet receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. QuinStreet does not include all companies or all types of products available in the marketplace.