finished CRUD for encrypt