Low photon count based digital holography for quadratic phase cryptography