-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
Hello,
I am using Fernet for Python but im trying to decrypt it from angular2 app. The decryption is not working and it gives me error
handleError TypeError: Cannot read property 'sigBytes' of undefined
at Object.init (http://localhost:8100/build/js/app.bundle.js:68362:21)
at http://localhost:8100/build/js/app.bundle.js:67958:25
at Function.createHmac (http://localhost:8100/build/js/app.bundle.js:74924:12)
at Object.decodeToken [as decode] (http://localhost:8100/build/js/app.bundle.js:75037:32)
at FeedRequestProvider.ApiHelper.decrypt (http://localhost:8100/build/js/app.bundle.js:3925:28)
at MapSubscriber.project (http://localhost:8100/build/js/app.bundle.js:4083:27)
at MapSubscriber._next (http://localhost:8100/build/js/app.bundle.js:143244:35)
at MapSubscriber.Subscriber.next (http://localhost:8100/build/js/app.bundle.js:136995:18)
at XMLHttpRequest.onLoad (http://localhost:8100/build/js/app.bundle.js:46134:38)
at ZoneDelegate.invokeTask (http://localhost:8100/build/js/zone.js:356:38)
This is the code im using to decrypt,
decrypt(response):string {
console.log('DECRYPTING...');
console.log(response.text());
var token = new this.fernet.Token({
secret: this.key,
token: response.text()
})
let buffer = token.decode();
console.log('fernet', buffer);
Can you please let me know where i am doing this wrong?
Thanks
Metadata
Metadata
Assignees
Labels
No labels