Splitting the authentication code