How can i encrypt and decrypt a pdf blob with forge and store in localStorage?
问题 I've trying to encrypt a Blob of pdf file and store it in the localStorage and read and decrypt it later when i'm offline. My app is written in AngularJS and the encryption is done with forge Here is my code for downloading the pdf file: $http.get(url, { headers: { "Application-Authorization": appContext.user.token }, responseType: "blob" }).then(function(response) { backendCipherService.encryptPDF(response.data, appContext.user.password).then(function(data) { $localForage.setItem("document::