Which language would be best

Member

Posts:Location:Joined: 01.01.70 Rank: Guest

Posted on 01-01-10 09:56

I'm just starting out here, and after doing a few challenges I've become interested in encryption. I'd like to write an encrypting/decrypting program with input fields for the code desired to be encrypted/decrypted and a scroll-down menu for types of encryptions, but I'm not all that familiar with many programming languages. Which language would you suggest to be best to write a program like this?

RE: Which language would be best?

Honestly- language doesn't really matter as it's what you write that makes the program run, not how you write it. Sure, each language has its advantages and disadvantages, but those really only come into effect when you're talking about giant big-time projects of which this one is not. I say Python for its ease of use, although its lack of a switch/case could be annoying here.

RE: Which language would be best?

I, personally, found python very easy to work with for cryptography stuff, however I don't know that much C and none of C++ so I can't really speak against them.

The irony of man's condition is that the deepest need is to be free of the anxiety of death and annihilation; but it is life itself which awakens it, and so we must shrink from being fully alive.http://www.stealt. . .

Author

RE: Which language would be best?

Member

Posts:Location:Joined: 01.01.70 Rank: Guest

Posted on 01-01-10 20:42

I'd have to agree with not going for C/C++, that can be a bitch when going for something GUI based such as what you want. Go for what spy said. Also, please guys, do not make this a damn no language is superior thread, we've got enough of those speeches.

If you wanted it to run cross compatible with several operating systems, C++, python, Java, and perl would be the best ideas. If you wanted it to be for yourself, then choose your primary operating system. If you wanted it to be for many others with a quick lookup, such as a database, making a website would be great. PHP, Python, and Perl have great encryption capabilities. C++ will take more work, but is more powerful than the other languages.

Now that I have shed light on each, you should be able to decide.

Author

RE: Which language would be best?

Member

Posts:Location:Joined: 01.01.70 Rank: Guest

Posted on 02-01-10 02:54

bl4ckc4t wrote:
Possible languages could be:

Windows: VB, C++, C#, Python, Perl, Java

Linux: C++, Python, perl, Java

Web: PHP/HTML/MySQL, Java

The boundaries between Windows/Linux/Web are much more relaxed now than they have been in the past couple of years. Your list would make more sense like this:

Though I use PHP exclusively now and would obviously do an encryption program in it, I have to agree with everyone else in the thread that Python would be the easiest path. Also, if you're doing a GUI (which you're not necessarily obligated to), I'd recommend GTK as the most logical UI library.

To recap: Python +1

Edited by on 02-01-10 03:00

Author

RE: Which language would be best?

I'd say PHP would be a really good one to use. It already comes with a lot of encryption functions and it has good string manipulation features. Other than that I would say Perl, but Python just as well.

"The definition of insanity is doing the same thing over and over again and expecting different results.”
~Albert Einstein~

Author

RE: Which language would be best?

fashizzlepop wrote:
I'd say PHP would be a really good one to use. It already comes with a lot of encryption functions and it has good string manipulation features. Other than that I would say Perl, but Python just as well.

I totally agree with fashizzlepop here. If you look it up on w3schools, you'll see a lot of string and crypto operations in php, from transforming a string into an array to md5 encrypting. It may not be as powerful as C++, but it is extremely easy to use.

Author

RE: Which language would be best?

Member

Posts:Location:Joined: 01.01.70 Rank: Guest

Posted on 02-01-10 14:15

fashizzlepop wrote:
I'd say PHP would be a really good one to use. It already comes with a lot of encryption functions and it has good string manipulation features. Other than that I would say Perl, but Python just as well.

chess_rock wrote:
I totally agree with fashizzlepop here. If you look it up on w3schools, you'll see a lot of string and crypto operations in php, from transforming a string into an array to md5 encrypting. It may not be as powerful as C++, but it is extremely easy to use.

I'd agree 100%, except for the fact that there is a bit more of a learning curve with PHP (compared to Python) because you have to become familiar with the basics of web development. I still think that added time would be easier than trying to do it in Perl. Simply put, you have to really want to learn a language you don't want to learn in order to learn Perl.

If he's intending to do web development in the future, anyways, then PHP is the best choice. Since he chose to learn Python already, though, I doubt it.

Author

RE: Which language would be best?

Member

Posts:Location:Joined: 01.01.70 Rank: Guest

Posted on 02-01-10 15:23

I am intending to do web development in the future. I've got a good grasp on html, and learning javascript soon. PHP was on my list, but I didn't know what it really does.

In any case, I'll put PHP on the list, but I want to get familiar with Python first, as it seems useful to know.

Author

RE: Which language would be best?

Member

Posts:Location:Joined: 01.01.70 Rank: Guest

Posted on 02-01-10 15:40

PirataLibertad wrote:
In any case, I'll put PHP on the list, but I want to get familiar with Python first, as it seems useful to know.

It's only useful if you're going to use it.

Author

RE: Which language would be best?

Member

Posts:Location:Joined: 01.01.70 Rank: Guest

Posted on 02-01-10 15:45

I'm sure it'll be handy knowledge. Like if there's ever another Python contest. If not, oh well. I know another language