1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

More formatting changes

This commit is contained in:
Uncled1023 2016-01-21 15:08:36 -08:00
parent b12f8a93a6
commit 7d2844b4ed

View File

@ -12,11 +12,11 @@
When you using the web interface for uploads, the file is loaded using the javascript <a href="https://developer.mozilla.org/en-US/docs/Web/API/FileReader">FileReader</a> API.
</p>
<p>
Once the file is completely loaded into the buffer, a key and iv are generated by a random string generator to create a key that is <b>@Model.Config.UploadConfig.KeySize</b> Bytes and an iv (Block Size) that is <b>@Model.Config.UploadConfig.BlockSize</b> Bytes.
Once the file is completely loaded into the buffer, a key and iv are generated by a random string generator to create a key that is <b>@Model.Config.UploadConfig.KeySize Bytes</b> and an iv (Block Size) that is <b>@Model.Config.UploadConfig.BlockSize Bytes</b>.
Then the file buffer, key, and iv are passed into a Web Worker for encryption.
</p>
<p>
The file data is passed through a progressive ciphering with a chunk size of <b>@Model.Config.UploadConfig.ChunkSize</b> bytes. This is to help reduce the memory usage needed by the encryption process as it only needs to process and convert each chunk instead of the entire file.
The file data is passed through a progressive ciphering with a chunk size of <b>@Model.Config.UploadConfig.ChunkSize Bytes</b>. This is to help reduce the memory usage needed by the encryption process as it only needs to process and convert each chunk instead of the entire file.
</p>
<p>
Once all the file's data has been processed, the final buffer is then passed back to the main encryption routine and is sent to the server as a ArrayBuffer, along with the content-type, generated iv, key size, and block size.