check  encrypt