Hashing data regardless of order [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
This is kind of a really basic question to ask, but is there any type of hashing functionality that the output will be the same regarding of data position?
For example, the MD5 hash of abc is 900150983cd24fb0d6963f7d28e17f72, but the MD5 hash of cba is 3944b025c9ca7eec3154b44666ae04a0.
Is there any implementation that will get these to come out the same.
Perhaps hashing is the right method to achieve this and if so can anybody recommend a different solution?
Thanks

For cryptographic hashes, no. The very purpose of a cryptographic hash like MD5 is that even very similar inputs yield totally different outputs. This is to prevent giving hints to people trying to crack the hash.
As suggested in the comments, you'd have to sort your string contents to be exactly the same. This increases the risk of collisions; if security is your purpose, then just don't do this.

Related

How would I go about deobfuscating confuserex on most amount of obfuscation? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
If I had a confuserex application with the most amount of obfuscation added (max preset) how would I deobfuscate it?
It is orders of magnitude easier to obfuscate something, the to de-obfuscate it. This question has a high likelyhood of having nefarious intent. And any practical help would just result in future obfuscation being way more agressive. A scenario worse for performance, debugging and reliability of hte obfuscated software.
About the only theoretical way I could think off, would having something like Visual Studioes/.NET JiT level code optimisation. They are capable of swapping out constructst for totally different, quicker ones. A optimsaition for speed. This would be a optimisation towards readability. But even that will not be able to recover names obfuscated with some placeholder name. But I do not want to think this any further.

simulate key in games [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I have a problem. I made some program with c# to help me in games. The logic is very simple. I used SendKey() method and low-level procs and they works correclly in software but doesn't work in games. any body has some idea?
Thank you all.
Avoiding Send keys is a pretty basic anti-cheat measure. And you did just explain why :D
Send Key only works if the other side is reacting to what the Windowing System is telling it. Games often use raw input, to have better reactiontimes and avoid everything Windows might do to the input. And this rather simply cheat/bot approach too.

How to create blowfish algorithm step by step in c#? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am working with blowfish, and I use the code from schneier.com which is written in c#. There blowfish was implemented with ecb and cbc, but I'm still confused about how to produce step by step from blowfish algorithm, I want learn how to make blowfish in c# step by step.
Can someone help me?
there are a lot of articles and sources on the Internet. some of them
http://cryptolearning.blogspot.com/2013/01/explanation-of-blowfish-encryption.html
http://iitd.vlab.co.in/?sub=66&brch=184&sim=1147&cnt=1
https://defuse.ca/blowfish.htm
but you could find it by yourself
and if you don't like any article or example, you can use your debugger

algorithm for Encr/Decr String Value [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Is there any algorithm for Encrypt and Decrypt String values not exactly in .net ? I don't want to use .net libraries... like RijndaelManaged or something like this.
can u suggest me useful algorithm that implements in C# language?
An encryption algorithm is just a mathematical rule for changing a bunch of data into something else in order to hide it. It it not dependent on any specific programming language, just as calculating the area of a rectangle is not dependent on language - it can be done in many different languages, and should give the same result regardless.
You might want to browse some of the questions tagged with "encryption" in the Information Security site. That should give you a good idea about how this stuff works and is used for different situations.
To answer your question: You probably want to find some generic algorithm that is supported in several languages. The RSA algorithm may be what you need, and it is supported in C# / .Net by using the RSACryptoServiceProvider class.

Private information can be decompiled [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I have my database information saved on a string in clear text, if someone decompile my application its possible to get that information?
If yes there are ways to prevent that?
Yes, absolutely. It's not even hard.
If you are trying to hid a secret from your user, give up. A sufficiently dedicated user will win. You can look at the windows Data Protection API (http://msdn.microsoft.com/en-us/library/ms995355.aspx) but its only a speed bump. If you have to keep it a secret, keep it on your own server.

Categories