simple xor encrypt in PAAS/PHP mode