check encrypt