updated encryiption module