Added scrambler1() for encryption