ucsb-cs178-pythonCrypographic helper functions converted from Matlab to Python for use with UCSB's CS178 class