finish auth encrypt