@bicycle-codes/crypto-stream
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -5,3 +5,3 @@ { | ||
"type": "module", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"main": "dist/index.js", | ||
@@ -8,0 +8,0 @@ "files": [ |
@@ -46,2 +46,15 @@ # crypto stream | ||
```js | ||
const encryptedData = await fetch(imgUrl) | ||
const decryptedStream = await keychain.decryptStream(encryptedData.body) | ||
const response = new Response(decryptedStream) | ||
const blobUrl = window.URL.createObjectURL(await response.blob()) | ||
// ... | ||
function Component () { | ||
return html`<img src="${blobUrl}" />` | ||
} | ||
``` | ||
## API | ||
@@ -48,0 +61,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
113162
298