|
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...
|
|
|
|
|
Say three "Hail Trollslayers" and flagellate yourself with a kipper.
|
|
|
|
|
hi,
i am getting error when i am trying to show crystal report or export. i am not being able to understand reading the error message. i have bind my crystal report with dataset and also properly send crystal report parameter. please help me to fix up the problem.
Error Logon failed. Details: mscorlib : Could not find a part of the path 'D:\Tridip_BBA\BBA JOB Board With New Part\reman\TypedDataset\EOD.xsd'. Error in File C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\temp_a82e24f3-3616-46fa-bb17-84e169f5d5e7 {AD3F546E-6C3F-4675-9174-9E6F417D5F08}.rpt: Unable to connect: incorrect log on parameters. Error CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed. Details: mscorlib : Could not find a part of the path 'D:\Tridip_BBA\BBA JOB Board With New Part\reman\TypedDataset\EOD.xsd'. Error in File C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\temp_a82e24f3-3616-46fa-bb17-84e169f5d5e7 {AD3F546E-6C3F-4675-9174-9E6F417D5F08}.rpt: Unable to connect: incorrect log on parameters. ---> System.Runtime.InteropServices.COMException (0x8004100F): Logon failed. Details: mscorlib : Could not find a part of the path 'D:\Tridip_BBA\BBA JOB Board With New Part\reman\TypedDataset\EOD.xsd'. Error in File C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\temp_a82e24f3-3616-46fa-bb17-84e169f5d5e7 {AD3F546E-6C3F-4675-9174-9E6F417D5F08}.rpt: Unable to connect: incorrect log on parameters. at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) --- End of inner exception stack trace --- at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e) at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext) at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToDisk(ExportFormatType formatType, String fileName) at EOD_Schedular.frmMain.GenerateReport(Boolean ViewOnly) at EOD_Schedular.frmMain.Generate(Boolean ViewOnly) Method Name: ThrowDotNetException
tbhattacharjee
|
|
|
|
|
it seems CR is trying to logon for displaying reports.
try that block;
private void onForm_Load(object sender, EventArgs e)
{
ConnectionInfo myConnection = new ConnectionInfo();
myConnection.ServerName ="servername";
myConnection.DatabaseName = "DB NAME";
myConnection.UserID="user";
myConnection.Password = "password";
setDBLogon(myConnection);
}
private void setDBLogon(ConnectionInfo myconnect)
{
TableLogOnInfos myTable = new TableLogOnInfos();
myTable = crystalReportViewer1.LogOnInfo;
foreach (TableLogOnInfo myTableLogOn in myTable)
{
myTableLogOn.ConnectionInfo = myconnect;
}
}
|
|
|
|