added secret key encryption, started verification