checking in encryption code