algorithm for Encr/Decr String Value [closed] - c#

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.

Related

C# object serialization safely and best methods? Anyone can give me ans? [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 2 years ago.
Improve this question
Object serialization method ? I am creating my own arraylist serialization application.
Serialization is a huge topic. Without discussing lots of details about what your requirements are, only vague guidance is possible, in which case: by default, probably keep it simple and use generic things like JSON or XML; Json.NET has over 100 samples which are very reasonable for general-purpose scenarios. If you have specific requirements about size/performance/compatibility/capabilities/etc, then other tools or formats may be more appropriate. The only main rules are:
do not blindly use BinaryFormatter (or NetDataContractSerializer)
don't roll your own home-baked serialization format/code unless you know a lot about serialization and can explain why none of the myriad of pre-existing libraries won't work for your specific scenario

Calling another language with MQL5 [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 4 years ago.
Improve this question
I would like to scan an economic calendar (and in a second step possibly a news source) like this one for use in MetaTrader/MQL5. I guess I would need another programming language than MQL5 for that, possibly (but not necessarily) C#? (How) can it be done in principle?
Thank you very much in advance!
You can check whether you can access that web page through WebRequest() function available in MT4/5. Alternative way is to write a DLL (or to find one) and access the link above through the REST api (but it doesnt make sense as WebRequest provides it) or somehow else. The easiest way is to check all calendars you may find (myfxbook, mt5.com, fxfactory) and find the easiest page to parse with MT5 methods, then try to collect data and process it. If your skills include some other languages, it might make sense to collect data with REST and then parse it with Jsoup/soup/beautiful-soup (the library that is designed for your language) - that will help with tests (to clear the data faster), and WebRequest() for live.

Hashing data regardless of order [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 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.

How do you make a license for your programs? [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 7 years ago.
Improve this question
As the title says "How do you make a license for your programs?"
Do you use a plugin or do you make your own? I've looked the whole day for finding resulutions, but didnt found one yet.
I basically want a normal license for my program:
A textbox where you type your license "XXXX-XXXX-XXXX-XXXX"
Is it possible to make this yourself, or should i use a website for it? If i should use a website, which do you recomend then?
It is rather simple to implement a simple license yourself BUT it will no be very save.
Because C# is transformed into IL, everybody can decompile your code easily and work around your license checks. It is very hard to build a license mechanism in a save way, so you should resort to some existing, proven solution.

Is c# a suitable language for Chatterbot development which involve in Natural Language processing? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
I am doing my final year project and at the beginning of developing a chatter-bot mostly based on ALICE techniques.I have done research comparing two main chatter-bot systems ELIZA and ALICE and selected ALICE method of developing the chatter-bot.
The knowledge base will be developed using AIML and the searching algorithms will be used as ALICE where searching with wildcards "_","atomic words", and "*".
I have selected c# for the developing of needed algorithms and user string manipulation, and also as my chatter-bot is web based it is easy to deal with web development as well with c#.net.The already written API is also available.
My Problem is:
Whether the choice of selecting c#.net is good???
What are the possibilities of finding help with the development of a chatterbot with c#.net???
Other solutions for my situation???
Looking forward for you valuable suggestions. Thank you very much.
:):)
Maybe a meta language such as ANTLR (www.antlr.org) would work for you. You specify the natural language grammar to lex, parse and respond to according to your AI rules using the ANTLR language. Then use the ANTLR code generator to output the C# (or Java) code that implements your custom parser.
I know this is a new answer to a very old question, but it might help future generations.
Program# is an AIML interpreter written in C#
AIMLBot (Program#) is a small, fast, standards-compliant yet easily customizable implementation of an AIML (Artificial Intelligence Markup Language) based chatter bot in C#.
So to answer the question: Yes, C# is a suitable language for Chatterbot development.

Categories