A method for accessing an application, performed by a server, the method comprising: obtaining an application access request from a terminal, the application access request carrying a user identifier and an application identifier, the application identifier corresponding to an application that is to be accessed; acquiring an encryption key for encrypting the user identifier to obtain an encrypted user identifier, the encryption key carrying first key information and second key information; generating an authorization credential corresponding to the application access request according to the encrypted user identifier and the first key information, and storing the second key information; transmitting the authorization credential to the application that is to be accessed, in order to enable the application that is to be accessed to generate an authorization request based on the authorization credential, the authorization request including the authorization credential and the encrypted user identifier; receiving the authorization request returned by the application that is to be accessed; detecting a type of the application that is to be accessed based on the authorization request; determining that a detection result satisfies a preset condition when the type of the application that is to be accessed is an authorized application type, obtaining the first key information from the application that is to be accessed, calculating the encryption key used for encrypting the user identifier according to the first key information and the second key information stored, extracting the encrypted user identifier and the authorization credential from the detection result; decrypting the encrypted user identifier according to the encryption key; and enabling the terminal to access the application that is to be accessed based on a decryption result and the authorization credential. obtaining an application access request from a terminal, the application access request carrying a user identifier and an application identifier, the application identifier corresponding to an application that is to be accessed; acquiring an encryption key for encrypting the user identifier to obtain an encrypted user identifier, the encryption key carrying first key information and second key information; generating an authorization credential corresponding to the application access request according to the encrypted user identifier and the first key information, and storing the second key information; transmitting the authorization credential to the application that is to be accessed, in order to enable the application that is to be accessed to generate an authorization request based on the authorization credential, the authorization request including the authorization credential and the encrypted user identifier; receiving the authorization request returned by the application that is to be accessed; detecting a type of the application that is to be accessed based on the authorization request; determining that a detection result satisfies a preset condition when the type of the application that is to be accessed is an authorized application type, obtaining the first key information from the application that is to be accessed, calculating the encryption key used for encrypting the user identifier according to the first key information and the second key information stored, extracting the encrypted user identifier and the authorization credential from the detection result; decrypting the encrypted user identifier according to the encryption key; and enabling the terminal to access the application that is to be accessed based on a decryption result and the authorization credential.