System and method for securely processing an electronic identity