stanac / easycrypto Goto Github PK
View Code? Open in Web Editor NEWEasily encrypt/decrypt data and generate/hash/validate passwords
License: MIT License
Easily encrypt/decrypt data and generate/hash/validate passwords
License: MIT License
Hi, is there any way to remove the embedded salt and vector from the decrypted stream?
I am using this method to encrypt: AesEncryption.EncryptWithPassword.
I was attempting to encrypt a binary file of 360MB, and the following exception is raised.
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.IO.MemoryStream.set_Capacity(Int32 value)
at System.IO.MemoryStream.EnsureCapacity(Int32 value)
at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.Security.Cryptography.CryptoStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at EasyCrypto.AesEncryption.Encrypt(CryptoRequest request)
at EasyCrypto.AesEncryption.EncryptAndEmbedIv(Stream dataToEncrypt, Byte[] key, Stream destination, Byte[] salt)
at EasyCrypto.AesEncryption.EncryptWithPassword(Stream dataToEncrypt, String password, Stream destination)
at EasyCrypto.AesEncryption.<>c__DisplayClass3_0.<EncryptWithPassword>b__0(Stream inStream, Stream outStream)
at EasyCrypto.AesEncryption.HandleByteToStream(Byte[] data, Action`2 action)
at EasyCrypto.AesEncryption.EncryptWithPassword(Byte[] dataToEncrypt, String password)
Is there any chance you could consider adding some overloads to the AesFileEncrytion
methods (and other encryption methods where it makes sense) to accept a cancellation token in order to support cancellation.
I just had a cursory glance at the code, I understand this change would touch a lot of methods, because ultimately you need to push the cancellation token all the way down to the method;
internal static async Task EncryptAsync(CryptoRequest request)
but I think it is a worth while pursuit.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.