PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo/sdk-core/dist/src/bitgo/trading/network
Просмотр файла: decrypt.d.ts
/**
* Provided an X.509/ OpenSSL PEM private key, and a string of text to decrypt,
* This function will
* 1. Split the encrypted text into the encrypted key and the encrypted text
* 2. Decrypt the key using RSA-OAEP with the provided private key
* 3. Decrypt the text using AES-GCM with the decrypted key
* 4. Return the decrypted text
*
* @param {string} privateKey - The private key corresponding to the public key used for encryption
* @param {string} encryptedText - The encrypted text to decrypt
* @returns {string} The decrypted text
*/
export declare function decryptRsaWithAesGcm(privateKey: string, encryptedText: string): Promise<string>;
//# sourceMappingURL=decrypt.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!