Check in cipher class