Fixed masking in crypto string. Desperately needing unit tests.