From 9640c7579f225d5c1a447cc5accc7689e5d07a02 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 5 Jan 2020 21:35:41 +0100 Subject: [PATCH] Update --- Encrypter/Encrypter.xml | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/Encrypter/Encrypter.xml b/Encrypter/Encrypter.xml index 14cf47d..a40cd06 100644 --- a/Encrypter/Encrypter.xml +++ b/Encrypter/Encrypter.xml @@ -85,7 +85,7 @@ The used iterations. The re-encrypted data. - + Encrypts this string by means of AES. The result gets base64 encoded. Due to the necessary millions of SHA512 iterations, the methods runs at least several seconds in the year 2020 (approx. 5-7s). @@ -95,9 +95,25 @@ This UTF8 encoded string to encrypt. The password. Must consists of 6 chars or more. + The number of iterations to derive the key. Should not be adjusted. The default is secure for the current time. The base64 encoded and encrypted string. The string is ASCII encoding. - + + + Encrypts a given input stream and writes the encrypted data to the provided output stream. A buffer stream + gets used in front of the output stream. This method expects, that both streams are read-to-use e.g. the + input stream is at the desired position and the output stream is writable, etc. This method disposes the + internal crypto streams. Thus, the input and output streams might get disposed as well. Please note, that + this method writes binary data without e.g. base64 encoding. + + When the task finished, the entire encryption of the input stream is done. + + The desired input stream. The encryption starts at the current position. + The desired output stream. The encrypted data gets written to the current position. + The encryption password. + The number of iterations to derive the key. Should not be adjusted. The default is secure for the current time. + + Decrypts an base64 encoded and encrypted string. Due to the necessary millions of SHA512 iterations, the methods runs at least several seconds in the year 2020 (approx. 5-7s). @@ -107,7 +123,23 @@ The base64 encoded and AES encrypted string. This string must be ASCII encoded. The password. Must consists of 6 chars or more. + The number of iterations to derive the key. Should not be adjusted. The default is secure for the current time. The decrypted UTF8 encoded string. + + + Decrypts a given input stream and writes the decrypted data to the provided output stream. A buffer stream + gets used in front of the output stream. This method expects, that both streams are read-to-use e.g. the + input stream is at the desired position and the output stream is writable, etc. This method disposes the + internal crypto streams. Thus, the input and output streams might get disposed as well. Please note, that + this method writes binary data without e.g. base64 encoding. + + When the task finished, the entire decryption of the input stream is done. + + The desired input stream. The decryption starts at the current position. + The desired output stream. The decrypted data gets written to the current position. + The encryption password. + The number of iterations to derive the key. Should not be adjusted. The default is secure for the current time. +