fixed ruby syntax error in cookEncrypt script