prod key instad of asdf

This commit is contained in:
Drew Ansbacher
2021-09-08 16:23:26 +03:00
committed by Aiden McClelland
parent 85b6448f2d
commit 0572855734

View File

@@ -52,7 +52,7 @@ export class HttpService {
const options = {
responseType: 'arraybuffer',
body: await AES_CTR.encryptPbkdf2( 'asdf', encodeUtf8( JSON.stringify(httpOpts.body))),
body: await AES_CTR.encryptPbkdf2( this.productKey, encodeUtf8( JSON.stringify(httpOpts.body))),
observe: 'events',
reportProgress: false,
headers: {
@@ -67,7 +67,7 @@ export class HttpService {
return (withTimeout(req, 60000))
.toPromise()
.then(res => AES_CTR.decryptPbkdf2('asdf', new Uint8Array(res)))
.then(res => AES_CTR.decryptPbkdf2(this.productKey, new Uint8Array(res)))
.then(res => JSON.parse(decodeUtf8(res)))
.catch(e => { throw new HttpError(e) })
}