Decrypting getfile stream. - WeOnlyDo Discussion board

Decrypting getfile stream. (General questions)

by Gwydion, Friday, January 28, 2005, 21:52 (7036 days ago)

I read in the wodSFTP.NET manual that it's possible to use streams with putfile and getfile methods. I want to decrypt the stream comming from the getfile method using CryptoStream and then store them on disk. I can't figure out how to get this to work.
Some code snippets.

UnicodeEncoding UE = new UnicodeEncoding();
byte[] key = UE.GetBytes( password );

RijndaelManaged RMCrypto = new RijndaelManaged();
CryptoStream cs = new CryptoStream( fsCrypt, RMCrypto.CreateDecryptor( key, key ), CryptoStreamMode.Read );

Re: Decrypting getfile stream.

by wodSupport, Thursday, February 03, 2005, 10:56 (7030 days ago) @ Gwydion

Gwydion,

hi. Can you please send email to techsupport@weonlydo.com . Please send us code snippet that encrypts or decrypts *any* stream the way you need it, we will then put it against wodSFTP.NET to see how to use it from there.

Possible?