forge

How can i encrypt and decrypt a pdf blob with forge and store in localStorage?

Deadly 提交于 2019-12-01 06:06:47
问题 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::

一些国内镜像 整理

二次信任 提交于 2019-11-30 06:32:59
国内镜像加速还是很给力的。收集一些常用的镜像。 清华 pypi https://pypi.tuna.tsinghua.edu.cn/simple 临时使用 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package 设置默认 修改 ~/.config/pip/pip.conf (Linux), %APPDATA%\pip\pip.ini (Windows 10) 或 $HOME/Library/Application Support/pip/pip.conf (macOS) (没有就创建一个), 修改 index-url 至tuna,例如 [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple 阿里 pypi https://mirrors.aliyun.com/help/pypi 在 ~/.pip/pip.conf 文件中添加或修改 [global] index-url = http://mirrors.aliyun.com/pypi/simple/ [install] trusted-host=mirrors.aliyun.com 清华 Anaconda 镜像 https://mirrors.tuna.tsinghua.edu.cn

forge.facebook.ui callback invoked with null on iOS

天涯浪子 提交于 2019-11-28 09:08:01
问题 I'm having trouble with Trigger.io Forge and getting a callback from a native FB friend selector UI. The problem is only showing on iOS, works fine on Android. Running this code in catalyst on either iPhone device or simulator causes the FB dialogue to show correctly. >forge.facebook.ui({ method: 'apprequests', message: 'Hey' }, function(a){console.log('success: '+JSON.stringify(a))}, function(error) {console.log('error:'+JSON.stringify(error))}); >undefined >success: null When selecting some