Function: encryptPassword()
ts
function encryptPassword(
password,
key,
options?
): string;Encrypts a password the way the app does: an RSA-wrapped AES-256-GCM session key over the password, packed as #PWD_INSTAGRAM:4:<ts>:<base64>. The public key comes from the launcher/sync response headers.
Parameters
| Parameter | Type |
|---|---|
password | string |
key | PasswordPublicKey |
options? | EncryptPasswordOptions |
Returns
string