questions about sharpAESCrypt.dll
Posted: Wed Sep 25, 2013 8:13 am
hi, i am trying to encrypt the password string with sharpAESCrypt.dll in my software,wich is building with c#.
for example:
but,when i read aesStream, the builder throw error.
i want to know how to read the output stream,and convert it to string. thanks!
for example:
Code: Select all
byte[] byteArr=Encoding.UTF8.GetBytes(password);
stream midAESCrypt=new MemoryStream(byteArr);
stream aesStream= new SharpAESCrypt.SharpAESCrypt(username,midAESCrypt,SharpAESCrypt.OperationMode.Encrypt);
//i use username as the password of AES
i want to know how to read the output stream,and convert it to string. thanks!