@secrecy/lib 1.0.0-dev.25 → 1.0.0-dev.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BaseClient.d.ts +274 -0
- package/dist/BaseClient.js +2227 -0
- package/dist/PopupTools.d.ts +17 -0
- package/dist/PopupTools.js +213 -0
- package/dist/ZeusThunder.d.ts +2 -0
- package/dist/ZeusThunder.js +113 -0
- package/dist/cache.d.ts +7 -0
- package/dist/cache.js +5 -0
- package/dist/client/admin/index.d.ts +11 -0
- package/dist/client/admin/index.js +198 -0
- package/dist/client/convert/file.d.ts +5 -0
- package/dist/client/convert/file.js +39 -0
- package/dist/client/convert/folder.d.ts +8 -0
- package/dist/client/convert/folder.js +264 -0
- package/dist/client/convert/mail.d.ts +3 -0
- package/dist/client/convert/mail.js +46 -0
- package/dist/client/convert/vFile.d.ts +5 -0
- package/dist/client/convert/vFile.js +164 -0
- package/dist/client/helpers.d.ts +23 -0
- package/dist/client/helpers.js +114 -0
- package/dist/client/index.d.ts +172 -0
- package/dist/client/index.js +6169 -0
- package/dist/client/storage.d.ts +7 -0
- package/dist/client/storage.js +12 -0
- package/dist/client/types/File.d.ts +21 -0
- package/dist/client/types/File.js +3 -0
- package/dist/client/types/FilesOnUsersOnApplications.d.ts +9 -0
- package/dist/client/types/FilesOnUsersOnApplications.js +3 -0
- package/dist/client/types/Folder.d.ts +68 -0
- package/dist/client/types/Folder.js +7 -0
- package/dist/client/types/Inputs.d.ts +21 -0
- package/dist/client/types/Inputs.js +3 -0
- package/dist/client/types/UserAppNotifications.d.ts +6 -0
- package/dist/client/types/UserAppNotifications.js +3 -0
- package/dist/client/types/UserAppSettings.d.ts +7 -0
- package/dist/client/types/UserAppSettings.js +3 -0
- package/dist/client/types/VFile.d.ts +62 -0
- package/dist/client/types/VFile.js +4 -0
- package/dist/client/types/index.d.ts +154 -0
- package/dist/client/types/index.js +10 -0
- package/dist/client/types/queries.d.ts +535 -0
- package/dist/client/types/queries.js +192 -0
- package/dist/crypto/file.d.ts +14 -0
- package/dist/crypto/file.js +291 -0
- package/dist/crypto/index.d.ts +12 -0
- package/dist/crypto/index.js +45 -0
- package/dist/error.d.ts +30 -0
- package/dist/error.js +3 -0
- package/dist/index.d.ts +13 -3857
- package/dist/index.js +42 -255
- package/dist/minify/index.d.ts +2 -0
- package/dist/minify/index.js +28 -0
- package/dist/minify/lz4.d.ts +5 -0
- package/dist/minify/lz4.js +633 -0
- package/dist/sodium.d.ts +3 -0
- package/dist/sodium.js +28 -0
- package/dist/utils/store-buddy.d.ts +14 -0
- package/dist/utils/store-buddy.js +69 -0
- package/dist/utils/time.d.ts +10 -0
- package/dist/utils/time.js +22 -0
- package/dist/utils.d.ts +4 -0
- package/dist/utils.js +188 -0
- package/dist/worker/__mock__/sodium.worker.d.ts +19 -0
- package/dist/worker/__mock__/sodium.worker.js +46 -0
- package/dist/worker/md5.d.ts +1 -0
- package/dist/worker/md5.js +43 -0
- package/dist/worker/sodium.d.ts +3 -0
- package/dist/worker/sodium.js +155 -0
- package/dist/worker/workerCodes.d.ts +2 -0
- package/dist/worker/workerCodes.js +3 -0
- package/dist/zeus/const.d.ts +2 -0
- package/dist/zeus/const.js +2267 -0
- package/dist/zeus/index.d.ts +4043 -0
- package/dist/zeus/index.js +549 -0
- package/package.json +24 -16
- package/CHANGELOG.md +0 -178
- package/__tests__/client/client.test.ts +0 -81
- package/__tests__/client/folder.test.ts +0 -302
- package/__tests__/client/mail.test.ts +0 -476
- package/__tests__/client/timing.test.ts +0 -35
- package/__tests__/client/utils.ts +0 -41
- package/__tests__/client/vFile.test.ts +0 -207
- package/__tests__/index.test.ts +0 -171
- package/commitlint.config.cjs +0 -3
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -255
- package/dist/index.mjs.map +0 -1
- package/docs/assets/css/main.css +0 -2660
- package/docs/assets/images/icons.png +0 -0
- package/docs/assets/images/icons@2x.png +0 -0
- package/docs/assets/images/widgets.png +0 -0
- package/docs/assets/images/widgets@2x.png +0 -0
- package/docs/assets/js/main.js +0 -248
- package/docs/assets/js/search.js +0 -1
- package/docs/classes/baseclient.baseclient-1.html +0 -1165
- package/docs/classes/client.secrecyclient.html +0 -2527
- package/docs/enums/index.sodium.base64_variants.html +0 -205
- package/docs/index.html +0 -198
- package/docs/interfaces/client_types.draftmail.html +0 -335
- package/docs/interfaces/client_types.filecontentbase.html +0 -231
- package/docs/interfaces/client_types.filecontentcloud.html +0 -244
- package/docs/interfaces/client_types.filecontentreceivedmail.html +0 -244
- package/docs/interfaces/client_types.filecontentsentmail.html +0 -230
- package/docs/interfaces/client_types.receivedmail.html +0 -363
- package/docs/interfaces/client_types.sentmail.html +0 -335
- package/docs/interfaces/crypto.keypair.html +0 -202
- package/docs/interfaces/index.sodium.cryptobox.html +0 -185
- package/docs/interfaces/index.sodium.cryptokx.html +0 -185
- package/docs/interfaces/index.sodium.keypair.html +0 -199
- package/docs/interfaces/index.sodium.messagetag.html +0 -185
- package/docs/interfaces/index.sodium.secretbox.html +0 -185
- package/docs/interfaces/index.sodium.stateaddress.html +0 -171
- package/docs/interfaces/index.sodium.stringcryptobox.html +0 -185
- package/docs/interfaces/index.sodium.stringcryptokx.html +0 -185
- package/docs/interfaces/index.sodium.stringkeypair.html +0 -199
- package/docs/interfaces/index.sodium.stringmessagetag.html +0 -185
- package/docs/interfaces/index.sodium.stringsecretbox.html +0 -185
- package/docs/interfaces/utils_store_buddy.storebuddy.html +0 -333
- package/docs/modules/baseclient.html +0 -929
- package/docs/modules/cache.html +0 -185
- package/docs/modules/client.html +0 -207
- package/docs/modules/client_convert_file.html +0 -216
- package/docs/modules/client_convert_folder.html +0 -303
- package/docs/modules/client_convert_vfile.html +0 -216
- package/docs/modules/client_helpers.html +0 -311
- package/docs/modules/client_storage.html +0 -167
- package/docs/modules/client_types.html +0 -1227
- package/docs/modules/client_types_file.html +0 -233
- package/docs/modules/client_types_filesonusersonapplications.html +0 -168
- package/docs/modules/client_types_folder.html +0 -383
- package/docs/modules/client_types_inputs.html +0 -263
- package/docs/modules/client_types_mail.html +0 -181
- package/docs/modules/client_types_queries.html +0 -199
- package/docs/modules/client_types_userappsettings.html +0 -163
- package/docs/modules/client_types_vfile.html +0 -364
- package/docs/modules/crypto.html +0 -366
- package/docs/modules/crypto_file.html +0 -344
- package/docs/modules/index.html +0 -779
- package/docs/modules/index.sodium.html +0 -6039
- package/docs/modules/minify.html +0 -183
- package/docs/modules/minify_lz4.html +0 -279
- package/docs/modules/popuptools.html +0 -259
- package/docs/modules/sodium.html +0 -167
- package/docs/modules/utils.html +0 -219
- package/docs/modules/utils_store_buddy.html +0 -208
- package/docs/modules/utils_time.html +0 -330
- package/docs/modules/worker_md5.html +0 -156
- package/docs/modules/worker_sodium.html +0 -231
- package/docs/modules/worker_workercodes.html +0 -157
- package/docs/modules.html +0 -235
- package/index.html +0 -21
- package/jest.config.ts +0 -27
- package/jest.setup.ts +0 -6
- package/release.config.cjs +0 -15
- package/tsup.config.ts +0 -23
|
@@ -1,344 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html class="default no-js">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<title>crypto/file | @secrecy/lib</title>
|
|
7
|
-
<meta name="description" content="Documentation for @secrecy/lib">
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
-
<link rel="stylesheet" href="../assets/css/main.css">
|
|
10
|
-
<script async src="../assets/js/search.js" id="search-script"></script>
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
<header>
|
|
14
|
-
<div class="tsd-page-toolbar">
|
|
15
|
-
<div class="container">
|
|
16
|
-
<div class="table-wrap">
|
|
17
|
-
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
|
|
18
|
-
<div class="field">
|
|
19
|
-
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
|
|
20
|
-
<input id="tsd-search-field" type="text" />
|
|
21
|
-
</div>
|
|
22
|
-
<ul class="results">
|
|
23
|
-
<li class="state loading">Preparing search index...</li>
|
|
24
|
-
<li class="state failure">The search index is not available</li>
|
|
25
|
-
</ul>
|
|
26
|
-
<a href="../index.html" class="title">@secrecy/lib</a>
|
|
27
|
-
</div>
|
|
28
|
-
<div class="table-cell" id="tsd-widgets">
|
|
29
|
-
<div id="tsd-filter">
|
|
30
|
-
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
|
|
31
|
-
<div class="tsd-filter-group">
|
|
32
|
-
<div class="tsd-select" id="tsd-filter-visibility">
|
|
33
|
-
<span class="tsd-select-label">All</span>
|
|
34
|
-
<ul class="tsd-select-list">
|
|
35
|
-
<li data-value="public">Public</li>
|
|
36
|
-
<li data-value="protected">Public/Protected</li>
|
|
37
|
-
<li data-value="private" class="selected">All</li>
|
|
38
|
-
</ul>
|
|
39
|
-
</div>
|
|
40
|
-
<input type="checkbox" id="tsd-filter-inherited" checked />
|
|
41
|
-
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
|
|
42
|
-
<input type="checkbox" id="tsd-filter-externals" checked />
|
|
43
|
-
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
51
|
-
<div class="tsd-page-title">
|
|
52
|
-
<div class="container">
|
|
53
|
-
<ul class="tsd-breadcrumb">
|
|
54
|
-
<li>
|
|
55
|
-
<a href="../modules.html">@secrecy/lib</a>
|
|
56
|
-
</li>
|
|
57
|
-
<li>
|
|
58
|
-
<a href="crypto_file.html">crypto/file</a>
|
|
59
|
-
</li>
|
|
60
|
-
</ul>
|
|
61
|
-
<h1>Module crypto/file</h1>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
</header>
|
|
65
|
-
<div class="container container-main">
|
|
66
|
-
<div class="row">
|
|
67
|
-
<div class="col-8 col-content">
|
|
68
|
-
<section class="tsd-panel-group tsd-index-group">
|
|
69
|
-
<h2>Index</h2>
|
|
70
|
-
<section class="tsd-panel tsd-index-panel">
|
|
71
|
-
<div class="tsd-index-content">
|
|
72
|
-
<section class="tsd-index-section ">
|
|
73
|
-
<h3>Type aliases</h3>
|
|
74
|
-
<ul class="tsd-index-list">
|
|
75
|
-
<li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="crypto_file.html#EncryptedFile" class="tsd-kind-icon">Encrypted<wbr>File</a></li>
|
|
76
|
-
<li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="crypto_file.html#Progress" class="tsd-kind-icon">Progress</a></li>
|
|
77
|
-
</ul>
|
|
78
|
-
</section>
|
|
79
|
-
<section class="tsd-index-section ">
|
|
80
|
-
<h3>Variables</h3>
|
|
81
|
-
<ul class="tsd-index-list">
|
|
82
|
-
<li class="tsd-kind-variable tsd-parent-kind-module"><a href="crypto_file.html#CHUNK_SIZE" class="tsd-kind-icon">CHUNK_<wbr>SIZE</a></li>
|
|
83
|
-
</ul>
|
|
84
|
-
</section>
|
|
85
|
-
<section class="tsd-index-section ">
|
|
86
|
-
<h3>Functions</h3>
|
|
87
|
-
<ul class="tsd-index-list">
|
|
88
|
-
<li class="tsd-kind-function tsd-parent-kind-module"><a href="crypto_file.html#decryptSecretstream" class="tsd-kind-icon">decrypt<wbr>Secretstream</a></li>
|
|
89
|
-
<li class="tsd-kind-function tsd-parent-kind-module"><a href="crypto_file.html#encryptSecretstream" class="tsd-kind-icon">encrypt<wbr>Secretstream</a></li>
|
|
90
|
-
<li class="tsd-kind-function tsd-parent-kind-module"><a href="crypto_file.html#secretstreamKeygen" class="tsd-kind-icon">secretstream<wbr>Keygen</a></li>
|
|
91
|
-
</ul>
|
|
92
|
-
</section>
|
|
93
|
-
</div>
|
|
94
|
-
</section>
|
|
95
|
-
</section>
|
|
96
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
97
|
-
<h2>Type aliases</h2>
|
|
98
|
-
<section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module">
|
|
99
|
-
<a name="EncryptedFile" class="tsd-anchor"></a>
|
|
100
|
-
<h3>Encrypted<wbr>File</h3>
|
|
101
|
-
<div class="tsd-signature tsd-kind-icon">Encrypted<wbr>File<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Uint8Array</span><span class="tsd-signature-symbol">; </span>md5<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>md5Encrypted<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></div>
|
|
102
|
-
<aside class="tsd-sources">
|
|
103
|
-
<ul>
|
|
104
|
-
<li>Defined in src/crypto/file.ts:6</li>
|
|
105
|
-
</ul>
|
|
106
|
-
</aside>
|
|
107
|
-
<div class="tsd-type-declaration">
|
|
108
|
-
<h4>Type declaration</h4>
|
|
109
|
-
<ul class="tsd-parameters">
|
|
110
|
-
<li class="tsd-parameter">
|
|
111
|
-
<h5>data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Uint8Array</span></h5>
|
|
112
|
-
</li>
|
|
113
|
-
<li class="tsd-parameter">
|
|
114
|
-
<h5>md5<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
|
115
|
-
</li>
|
|
116
|
-
<li class="tsd-parameter">
|
|
117
|
-
<h5>md5<wbr>Encrypted<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
|
118
|
-
</li>
|
|
119
|
-
</ul>
|
|
120
|
-
</div>
|
|
121
|
-
</section>
|
|
122
|
-
<section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module">
|
|
123
|
-
<a name="Progress" class="tsd-anchor"></a>
|
|
124
|
-
<h3>Progress</h3>
|
|
125
|
-
<div class="tsd-signature tsd-kind-icon">Progress<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>current<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>percent<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>total<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span></div>
|
|
126
|
-
<aside class="tsd-sources">
|
|
127
|
-
<ul>
|
|
128
|
-
<li>Defined in src/crypto/file.ts:100</li>
|
|
129
|
-
</ul>
|
|
130
|
-
</aside>
|
|
131
|
-
<div class="tsd-type-declaration">
|
|
132
|
-
<h4>Type declaration</h4>
|
|
133
|
-
<ul class="tsd-parameters">
|
|
134
|
-
<li class="tsd-parameter">
|
|
135
|
-
<h5>current<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5>
|
|
136
|
-
</li>
|
|
137
|
-
<li class="tsd-parameter">
|
|
138
|
-
<h5>percent<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5>
|
|
139
|
-
</li>
|
|
140
|
-
<li class="tsd-parameter">
|
|
141
|
-
<h5>total<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5>
|
|
142
|
-
</li>
|
|
143
|
-
</ul>
|
|
144
|
-
</div>
|
|
145
|
-
</section>
|
|
146
|
-
</section>
|
|
147
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
148
|
-
<h2>Variables</h2>
|
|
149
|
-
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-module">
|
|
150
|
-
<a name="CHUNK_SIZE" class="tsd-anchor"></a>
|
|
151
|
-
<h3><span class="tsd-flag ts-flagConst">Const</span> CHUNK_<wbr>SIZE</h3>
|
|
152
|
-
<div class="tsd-signature tsd-kind-icon">CHUNK_<wbr>SIZE<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">8192</span><span class="tsd-signature-symbol"> = 8192</span></div>
|
|
153
|
-
<aside class="tsd-sources">
|
|
154
|
-
<ul>
|
|
155
|
-
<li>Defined in src/crypto/file.ts:98</li>
|
|
156
|
-
</ul>
|
|
157
|
-
</aside>
|
|
158
|
-
</section>
|
|
159
|
-
</section>
|
|
160
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
161
|
-
<h2>Functions</h2>
|
|
162
|
-
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module">
|
|
163
|
-
<a name="decryptSecretstream" class="tsd-anchor"></a>
|
|
164
|
-
<h3>decrypt<wbr>Secretstream</h3>
|
|
165
|
-
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module">
|
|
166
|
-
<li class="tsd-signature tsd-kind-icon">decrypt<wbr>Secretstream<span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Uint8Array</span>, data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Uint8Array</span>, progress<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>progress<span class="tsd-signature-symbol">: </span><a href="crypto_file.html#Progress" class="tsd-signature-type" data-tsd-kind="Type alias">Progress</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span>, abort<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">AbortController</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Uint8Array</span><span class="tsd-signature-symbol">></span></li>
|
|
167
|
-
</ul>
|
|
168
|
-
<ul class="tsd-descriptions">
|
|
169
|
-
<li class="tsd-description">
|
|
170
|
-
<aside class="tsd-sources">
|
|
171
|
-
<ul>
|
|
172
|
-
<li>Defined in src/crypto/file.ts:170</li>
|
|
173
|
-
</ul>
|
|
174
|
-
</aside>
|
|
175
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
176
|
-
<ul class="tsd-parameters">
|
|
177
|
-
<li>
|
|
178
|
-
<h5>key: <span class="tsd-signature-type">Uint8Array</span></h5>
|
|
179
|
-
</li>
|
|
180
|
-
<li>
|
|
181
|
-
<h5>data: <span class="tsd-signature-type">Uint8Array</span></h5>
|
|
182
|
-
</li>
|
|
183
|
-
<li>
|
|
184
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> progress: <span class="tsd-signature-symbol">(</span>progress<span class="tsd-signature-symbol">: </span><a href="crypto_file.html#Progress" class="tsd-signature-type" data-tsd-kind="Type alias">Progress</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h5>
|
|
185
|
-
<ul class="tsd-parameters">
|
|
186
|
-
<li class="tsd-parameter-signature">
|
|
187
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
188
|
-
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>progress<span class="tsd-signature-symbol">: </span><a href="crypto_file.html#Progress" class="tsd-signature-type" data-tsd-kind="Type alias">Progress</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></li>
|
|
189
|
-
</ul>
|
|
190
|
-
<ul class="tsd-descriptions">
|
|
191
|
-
<li class="tsd-description">
|
|
192
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
193
|
-
<ul class="tsd-parameters">
|
|
194
|
-
<li>
|
|
195
|
-
<h5>progress: <a href="crypto_file.html#Progress" class="tsd-signature-type" data-tsd-kind="Type alias">Progress</a></h5>
|
|
196
|
-
</li>
|
|
197
|
-
</ul>
|
|
198
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4>
|
|
199
|
-
</li>
|
|
200
|
-
</ul>
|
|
201
|
-
</li>
|
|
202
|
-
</ul>
|
|
203
|
-
</li>
|
|
204
|
-
<li>
|
|
205
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> abort: <span class="tsd-signature-type">AbortController</span></h5>
|
|
206
|
-
</li>
|
|
207
|
-
</ul>
|
|
208
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Uint8Array</span><span class="tsd-signature-symbol">></span></h4>
|
|
209
|
-
</li>
|
|
210
|
-
</ul>
|
|
211
|
-
</section>
|
|
212
|
-
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module">
|
|
213
|
-
<a name="encryptSecretstream" class="tsd-anchor"></a>
|
|
214
|
-
<h3>encrypt<wbr>Secretstream</h3>
|
|
215
|
-
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module">
|
|
216
|
-
<li class="tsd-signature tsd-kind-icon">encrypt<wbr>Secretstream<span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Uint8Array</span>, data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Uint8Array</span>, progress<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>progress<span class="tsd-signature-symbol">: </span><a href="crypto_file.html#Progress" class="tsd-signature-type" data-tsd-kind="Type alias">Progress</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span>, abort<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">AbortController</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="crypto_file.html#EncryptedFile" class="tsd-signature-type" data-tsd-kind="Type alias">EncryptedFile</a><span class="tsd-signature-symbol">></span></li>
|
|
217
|
-
</ul>
|
|
218
|
-
<ul class="tsd-descriptions">
|
|
219
|
-
<li class="tsd-description">
|
|
220
|
-
<aside class="tsd-sources">
|
|
221
|
-
<ul>
|
|
222
|
-
<li>Defined in src/crypto/file.ts:106</li>
|
|
223
|
-
</ul>
|
|
224
|
-
</aside>
|
|
225
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
226
|
-
<ul class="tsd-parameters">
|
|
227
|
-
<li>
|
|
228
|
-
<h5>key: <span class="tsd-signature-type">Uint8Array</span></h5>
|
|
229
|
-
</li>
|
|
230
|
-
<li>
|
|
231
|
-
<h5>data: <span class="tsd-signature-type">Uint8Array</span></h5>
|
|
232
|
-
</li>
|
|
233
|
-
<li>
|
|
234
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> progress: <span class="tsd-signature-symbol">(</span>progress<span class="tsd-signature-symbol">: </span><a href="crypto_file.html#Progress" class="tsd-signature-type" data-tsd-kind="Type alias">Progress</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h5>
|
|
235
|
-
<ul class="tsd-parameters">
|
|
236
|
-
<li class="tsd-parameter-signature">
|
|
237
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
238
|
-
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>progress<span class="tsd-signature-symbol">: </span><a href="crypto_file.html#Progress" class="tsd-signature-type" data-tsd-kind="Type alias">Progress</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></li>
|
|
239
|
-
</ul>
|
|
240
|
-
<ul class="tsd-descriptions">
|
|
241
|
-
<li class="tsd-description">
|
|
242
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
243
|
-
<ul class="tsd-parameters">
|
|
244
|
-
<li>
|
|
245
|
-
<h5>progress: <a href="crypto_file.html#Progress" class="tsd-signature-type" data-tsd-kind="Type alias">Progress</a></h5>
|
|
246
|
-
</li>
|
|
247
|
-
</ul>
|
|
248
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4>
|
|
249
|
-
</li>
|
|
250
|
-
</ul>
|
|
251
|
-
</li>
|
|
252
|
-
</ul>
|
|
253
|
-
</li>
|
|
254
|
-
<li>
|
|
255
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> abort: <span class="tsd-signature-type">AbortController</span></h5>
|
|
256
|
-
</li>
|
|
257
|
-
</ul>
|
|
258
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="crypto_file.html#EncryptedFile" class="tsd-signature-type" data-tsd-kind="Type alias">EncryptedFile</a><span class="tsd-signature-symbol">></span></h4>
|
|
259
|
-
</li>
|
|
260
|
-
</ul>
|
|
261
|
-
</section>
|
|
262
|
-
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module">
|
|
263
|
-
<a name="secretstreamKeygen" class="tsd-anchor"></a>
|
|
264
|
-
<h3>secretstream<wbr>Keygen</h3>
|
|
265
|
-
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module">
|
|
266
|
-
<li class="tsd-signature tsd-kind-icon">secretstream<wbr>Keygen<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Uint8Array</span></li>
|
|
267
|
-
</ul>
|
|
268
|
-
<ul class="tsd-descriptions">
|
|
269
|
-
<li class="tsd-description">
|
|
270
|
-
<aside class="tsd-sources">
|
|
271
|
-
<ul>
|
|
272
|
-
<li>Defined in src/crypto/file.ts:22</li>
|
|
273
|
-
</ul>
|
|
274
|
-
</aside>
|
|
275
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Uint8Array</span></h4>
|
|
276
|
-
</li>
|
|
277
|
-
</ul>
|
|
278
|
-
</section>
|
|
279
|
-
</section>
|
|
280
|
-
</div>
|
|
281
|
-
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
282
|
-
<nav class="tsd-navigation primary">
|
|
283
|
-
<ul>
|
|
284
|
-
<li class=" ">
|
|
285
|
-
<a href="../modules.html">Modules</a>
|
|
286
|
-
</li>
|
|
287
|
-
<li class="current tsd-kind-module">
|
|
288
|
-
<a href="crypto_file.html">crypto/file</a>
|
|
289
|
-
</li>
|
|
290
|
-
</ul>
|
|
291
|
-
</nav>
|
|
292
|
-
<nav class="tsd-navigation secondary menu-sticky">
|
|
293
|
-
<ul class="before-current">
|
|
294
|
-
<li class=" tsd-kind-type-alias tsd-parent-kind-module">
|
|
295
|
-
<a href="crypto_file.html#EncryptedFile" class="tsd-kind-icon">Encrypted<wbr>File</a>
|
|
296
|
-
</li>
|
|
297
|
-
<li class=" tsd-kind-type-alias tsd-parent-kind-module">
|
|
298
|
-
<a href="crypto_file.html#Progress" class="tsd-kind-icon">Progress</a>
|
|
299
|
-
</li>
|
|
300
|
-
<li class=" tsd-kind-variable tsd-parent-kind-module">
|
|
301
|
-
<a href="crypto_file.html#CHUNK_SIZE" class="tsd-kind-icon">CHUNK_<wbr>SIZE</a>
|
|
302
|
-
</li>
|
|
303
|
-
<li class=" tsd-kind-function tsd-parent-kind-module">
|
|
304
|
-
<a href="crypto_file.html#decryptSecretstream" class="tsd-kind-icon">decrypt<wbr>Secretstream</a>
|
|
305
|
-
</li>
|
|
306
|
-
<li class=" tsd-kind-function tsd-parent-kind-module">
|
|
307
|
-
<a href="crypto_file.html#encryptSecretstream" class="tsd-kind-icon">encrypt<wbr>Secretstream</a>
|
|
308
|
-
</li>
|
|
309
|
-
<li class=" tsd-kind-function tsd-parent-kind-module">
|
|
310
|
-
<a href="crypto_file.html#secretstreamKeygen" class="tsd-kind-icon">secretstream<wbr>Keygen</a>
|
|
311
|
-
</li>
|
|
312
|
-
</ul>
|
|
313
|
-
</nav>
|
|
314
|
-
</div>
|
|
315
|
-
</div>
|
|
316
|
-
</div>
|
|
317
|
-
<footer class="with-border-bottom">
|
|
318
|
-
<div class="container">
|
|
319
|
-
<h2>Legend</h2>
|
|
320
|
-
<div class="tsd-legend-group">
|
|
321
|
-
<ul class="tsd-legend">
|
|
322
|
-
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
|
|
323
|
-
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
|
|
324
|
-
<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
|
|
325
|
-
<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
|
|
326
|
-
<li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li>
|
|
327
|
-
</ul>
|
|
328
|
-
<ul class="tsd-legend">
|
|
329
|
-
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
|
|
330
|
-
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
|
|
331
|
-
</ul>
|
|
332
|
-
<ul class="tsd-legend">
|
|
333
|
-
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
|
|
334
|
-
</ul>
|
|
335
|
-
</div>
|
|
336
|
-
</div>
|
|
337
|
-
</footer>
|
|
338
|
-
<div class="container tsd-generator">
|
|
339
|
-
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
|
|
340
|
-
</div>
|
|
341
|
-
<div class="overlay"></div>
|
|
342
|
-
<script src="../assets/js/main.js"></script>
|
|
343
|
-
</body>
|
|
344
|
-
</html>
|