tencent cloud

util.sloginEncrypt
Last updated: 2025-03-10 17:23:46
util.sloginEncrypt
Last updated: 2025-03-10 17:23:46
During the script execution, util.sloginEncrypt is used for QQ slogin encryption.
sloginEncrypt(salt: number, pwd: string, vcode: string): string

Parameters

Parameter
Type
Description
salt
number
QQ account number.
pwd
string
User's plaintext password.
vcode
string
appid, namely the aid field.

Return

Type
Description
string
Encrypted password.

Samples

Call the method for qq slogin encryption:
import util from 'pts/util';

export default function () {
// lXYi46n51i4I2E6rFgaR75Lnp9kt4S4ZTq9ZTCxPv-Ce0jWsjCss2uCl9Hed163KGkCLUxFivS9BTGRyR7YuWrDa9*tGcqal6q3BW2jxPR2M3Si3Q2prGGIM5sIgwaaBeQWo1w-67Hgd-Qt*N4fszGRSS55VDl-b4THwmOAp6eKA*sG80HEzbLRUWmNnfmg8wdmtyxiZisYtyWI2HJozH1EKuN2u9byOvFnMdzCMlL7kPIZACk3zt84DM5byfCVpBII5N1EM6IMZ*u7A2WOd2c2RerWbVwAyu1raYoZwTODeOx18xw2uTnGi8aLJTz4PIG*3svujqwMayIgtzhq1IQ__
console.log(util.sloginEncrypt(123456, 'abcdef', '14'));
}


Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback