Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Which language would be best


ghost's Avatar
0 0

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?

Thanks.


ghost's Avatar
0 0

If you want something strong, let it be C/C++.


ghost's Avatar
0 0

Python + gtk or Qt.


ghost's Avatar
0 0

I've decided I'm going to learn Python. Wish me luck. :)


ghost's Avatar
0 0

454447415244 wrote: If you want something strong, let it be C/C++.

To OP: this is your best answer.


Futility's Avatar
:(
80 122

Compromise wrote: Python + gtk or Qt.

To the OP: this is your best answer.

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.


stealth-'s Avatar
Ninja Extreme
0 0

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.


ghost's Avatar
0 0

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.


bl4ckc4t's Avatar
Banned
0 0

It all depends.

Possible languages could be:

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

Linux: C++, Python, perl, Java

Web: PHP/HTML/MySQL, Java

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.


ghost's Avatar
0 0

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:

Windows/Linux Desktop Programming: C++ Desktop/Web Programming: C# (Mono/ASP.Net), Python (Django), PHP (PHP-GTK), Perl (CGI)

No one programs in Java because it sucks.

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


fashizzlepop's Avatar
Member
0 0

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's Avatar
Member
0 0

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.


ghost's Avatar
0 0

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. :)


ghost's Avatar
0 0

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.


ghost's Avatar
0 0

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. :)


ghost's Avatar
0 0

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


fashizzlepop's Avatar
Member
0 0

define wrote: 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.)

Unless of course you WANT to learn Perl, like me. :P

But I agree, Perl is probably not the best choice for him.


fashizzlepop's Avatar
Member
0 0

For working with a GUI, yes.

For learning how to program properly and work with crypto…? lol. No.

Stick with Python.


SET's Avatar

SET

Peumonoultramicroscopicsilico
0 0

i disagree…VB.net doesn't have to have a gui at all and runs wonderfully fast…..


ghost's Avatar
0 0

SET wrote: Embrace the framework

Vendor lock-in. EMBRACE! Also, lol size.


SET's Avatar

SET

Peumonoultramicroscopicsilico
0 0

framework….i feel like i have to explian this alot more then i should. All .NET languages use the framework. So yes GUIs are simple but vb.net doesnt need a gui at all its great for anything windows.


ghost's Avatar
0 0

@ op:

You could do what you want in javascript and make your GUI with HTML tables. If the first post was all you really want to do, then I think this is the easiest way to do it. There's nothing wrong with learning python or c/c++, but it's more work. And the languages aren't really designed to do what you're doing (web stuff). It really sounds to me like it would be a huge distraction.

If you haven't studied JS yet, I liked the book "JavaScript: The Good Parts". it's on this site for free as an ebook, just search "javascript". http://www.51cnnet.net/

The second link might be a little off topic, but java script is more versitile than most people think. http://video.google.com/videoplay?docid=6147596885524966661&ei=IldBS67nDY-SqAO4t_DXDg&q=shmoo+con+javascript&hl=en#


ghost's Avatar
0 0

Well I planned on doing this as an application, not just for web, so javascript isn't all that helpful. Besides, I really want to become adept with a programming language.

Also, I run dual-boot Windows/Ubuntu.