c# - Represent string into unique int code -


My question is how can I show a string in an int code, I do not want to parse it Am (translate from English to French or German for example).

The string which I want to convert to an int code can be used as a search reference, I was going to use the hash code but to change the string it has to use Since in the hashing is to work with the machine's environmental settings, it is not optimal for my project, I was already thinking of using the ASC code for each letter of the word, but I am sorry It is a matter of fact that long words have an incredible amount in many languages ​​and the app is globalized, so this is not a very viable solution, this project is being deployed as an auctioned cloud site so I have complete No text search

Any ideas what I can do in this case?

Instead of giving you the requirements, you are already giving a solution, so it should be very well done That are the better options.

However, you can use a free hash with a platform with managed cryptography classes. Although be aware that this is not a unique guarantee, you can end up with a collision; But at least it has been made and you do not have to change the wheel again, for example go.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -