Hi, i'm learning C # and I am creating a utility using the library aescrypt, but I can not use it in advanced mode using streams and do not know how to see the exceptions that generates such as when the wrong password, someone would be so kind as to explain to me how it works with a few snippets of example.
thank you .
help aescrypt advanced mode
Re: help aescrypt advanced mode
"... I can not use it in advanced mode ..."
Does that mean that you don't know how to, or that your logic makes it impossible to use?
Does it work without using streams?
There is a post with examples here:
http://forums.packetizer.com/viewtopic.php?f=72&t=346
It should be fairly simple to figure out what exception is thrown if the password is incorrect, just try with another password and see what happens.
If you are looking for details regarding the error handling, look at the method ReadEncryptionHeader on line 324.
Specifically, an incorrect password is handled in line 382 and throws a CryptographicException.
Does that mean that you don't know how to, or that your logic makes it impossible to use?
Does it work without using streams?
There is a post with examples here:
http://forums.packetizer.com/viewtopic.php?f=72&t=346
It should be fairly simple to figure out what exception is thrown if the password is incorrect, just try with another password and see what happens.
If you are looking for details regarding the error handling, look at the method ReadEncryptionHeader on line 324.
Specifically, an incorrect password is handled in line 382 and throws a CryptographicException.
Re: help aescrypt advanced mode
i mean i don' t know how to use (sorry my english i'm italian). but now i understand the exceptions and the stream thanks a lot .