Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions decrypt.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ function aesDecrypt(sessionKey, encryptedData, iv) {
const privateKey = fs.readFileSync(path.join(__dirname, 'private-key.pem'), 'utf8');

// Example encoded values (replace with actual values)
const encodedEncryptedSessionKey = "UoMqnlLCYlqDnpvfTbL6xJj6UFamk9q4MVLDYln3dbRnOX5dOAX30vJr2R8aVihZ70XArU+cCnCkB6TjVVMWfJq1g+TpK4LJ693aKOBDExpe8lvil0shObC1Pqclr0f73zd3is/AAHxUN1f1bpfPT7EbksF/4LaXXjlez91VGPpQHyJe3uJOl+rmhDScr+b0wP4h6Av//ASrSUbdWK8AyJbNFOe6pKmMtdXe6o9bS7aUHb9eKPRpPBQcUI1Ty0SxDgRO0XL+7ewYMdcDLLdbrjzowW/yyimgxsJl6gCEAEJGSA4Kvp3f6ok0YMLSVPtNblDCAjAMHi/OZWWPQ0v1QQ==";
const encodedEncryptedData = "G73tFROnNJN25H3paoZDYffHutL7NPK3Uh9k11xwmyc=";
const encodedIv = "lX3Ab2pBqFZvfN0prwaKfg==";
const encoded_encrypted_session_key = "INSERT_ENCODED_ENCRYPTED_SESSION_KEY"
const encoded_encrypted_data = "INSERT_ENCODED_ENCRYPTED_DATA"
const encoded_iv = "INSERT_ENCODED_IV"

const decryptedSessionKey = decryptSessionKey(encodedEncryptedSessionKey, privateKey);
const decryptedData = aesDecrypt(decryptedSessionKey, encodedEncryptedData, encodedIv);
Expand Down