|
If comments are to be ignored by the compiler, they better start with a slash, not an asterisk. Or would you suggest an #if false block?
|
|
|
|
|
If you had said 'asterisks' by 'forward slashes' I would agree.
I thought that the use of the terms for arithmetic operations a touch mischievous.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Moi?
|
|
|
|
|
Ja!
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Bad news for you here I'm afraid. You've hit a limit in the number of characters that are being displayed. This is a new limit in CP.
|
|
|
|
|
And yet you're the latest character that somehow sneaked into this thread???
|
|
|
|
|
With my Jedi capabilities, I blow the limit apart. Strong in the force am I.
|
|
|
|
|
For a short moment, you sound more like some kind of Terminator. Didn't supper agree with you?
|
|
|
|
|
The best advise I can give about this is: Try to do it yourself and ask when you have a concrete problem.
By the way, I think you're gonna achieve a new record of downvotes with this post.
|
|
|
|
|
|
When you do do it, please try to give your variables more meaningful names. M is a string?
|
|
|
|
|
I have a tool I built for everyone that automates registry updates for a plethora of keys that need to be changed from time to time. Recently auditors decided that registry encryption was a must.
Someone somewhere of whom I have no idea who to even begin to contact, chose an encryption form (AES) and provided a simple input/output application that requires cutting and pasting etc etc. Doing this for 50 to 100 registry keys is pretty aggravating (hence why I built the tool in the first place) but it has since been rendered useless with the encryption.
Since I have the encrypted input and decrypted output, as well as the decrypted input and encrypted output, how difficult is it to reverse engineer this so that I can automate everything again?
Thanks for reading.
|
|
|
|
|
turbosupramk3 wrote: how difficult is it to reverse engineer this
Probably quite difficult; otherwise encryption would be a total waste of time. You need to get a copy of the original encryption code and key(s) and work from there. Alternatively start from scratch and re-encrypt all your data with a known algorithm and key. There are plenty of C# references and samples here on CodeProject, on MSDN and elsewhere.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
I unfortunately don't think either one of those are possible, but I will try to see if I can find out how to get the key?
|
|
|
|
|
They should have used asymmetric encryption
edit: ok, that was stupid, you'd have the other side as well so nothing will help. Their encryption is just obfuscation.
|
|
|
|
|
turbosupramk3 wrote: Someone somewhere of whom I have no idea who to even begin to contact, chose an encryption form (AES) and provided a simple input/output application that requires cutting and pasting etc etc.
What language is it written in? If it's .NET, you might want to try Reflector[^]. If the methods are public, then you might be able to call them directly from your application.
If that fails, you'd have to replace it with a decent AES-implementation.
I are Troll
|
|
|
|
|
Thanks for the link, it was written in .net so I will give this a try!
|
|
|
|
|
My pleasure, hope it works
|
|
|
|
|
Just wanted to let you know that this did work Eddy, thank you very much!
|
|
|
|
|
Cool - you're welcome
|
|
|
|
|
|
What is the method and the exact line where you are getting the exception?
Are you manipulating the GUI at that time?
I had to insert a number of if(e.RowIndex>=0) tests in my event handlers, as some GUI events also occur when e.g. clicking on the header row, which seems to have index -1.
wizardzz wrote: updates are all done on the same thread
Are you sure? No BackgroundWorker involved? No timer (other than Windows.Forms.Timer)? No asynchronous methods?
Anyhow, locate where it bombs, give it a proper try-catch, and look at the Exception's details.
|
|
|
|
|
Thank you for the response, I'll see if I can make any more progress.
|
|
|
|
|
Please don't remove questions when they've been answered. If somebody else has the same problem, they won't know that they have the same issue and the answer solves it.
|
|
|
|
|
I'm sorry guys. I ended up posting it in QA, too. I didn't know if it was worse to keep it a double post or to delete 1 of them.
Forgive me CP for I have sinned...
|
|
|
|