Error: Decrypt cipher data failed: Unsupported state or unable to authenticate data
at decryptedToken (file:///C:/Users/icp25/Desktop/VSC-Apple/Ap_data/test_apple.js:58:9)
at file:///C:/Users/icp25/Desktop/VSC-Apple/Ap_data/test_apple.js:176:1
at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:337:24)
at async loadESM (node:internal/process/esm_loader:34:7)
at async handleMainPromise (node:internal/modules/run_main:106:12)
Node.js v18.20.8
(venv) PS C:\Users\icp25\Desktop\VSC-Apple\Ap_data>
it fails - decrypted += decipher.final();
and here it not printing the data as a readable data -
let decrypted = decipher.update(CIPHERTEXT);
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Tags: