Jump to content
  • Advertisement
Sign in to follow this  
kelcharge

Basic Encryption?

This topic is 4789 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was wondering if someone could explain a little bit how to do basic encryption. I checked throught the article's here at GameDev but only found one article, and it was in VB so I really didn't understand it. I am programming in C++.

Share this post


Link to post
Share on other sites
Advertisement
TEA is easy to implement and from what Ive read its very secure. You can also make it very fast by unwinding the loop. Just click that link and you should find a lot of info on it (including C++ implementations).

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Encryption Lessons

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Err sorry that didn't work. Encryption Lessons

Share this post


Link to post
Share on other sites
Quote:
Original post by mike25025
TEA is easy to implement and from what Ive read its very secure. You can also make it very fast by unwinding the loop. Just click that link and you should find a lot of info on it (including C++ implementations).


This thread has a few implementations as well to take a look into for TEA.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
http://www.und.edu/org/crypto/crypto/lanaki.crypt.class/lessons/

Share this post


Link to post
Share on other sites
I am sorry but I don't seem to understand any of that. What I meant by my first post was how would I effectively code my own form of encryption. I get the concepts but not how to code it.

Share this post


Link to post
Share on other sites
Sorry, but rule number one about effectively implementing encryption in software is not to roll your own. Seriously consider using a pre existing encryption library.

Share this post


Link to post
Share on other sites
Quote:
Original post by kelcharge
I am sorry but I don't seem to understand any of that. What I meant by my first post was how would I effectively code my own form of encryption. I get the concepts but not how to code it.



Basic example of encryption:

char someInputString[] = "Hello world!";
int key = 35;

for(int i=0; i<strlen(someInputString); i++)
{
cout << char((int)someInputString^key);
}
cout << endl;



Quote:
Original post by SiCrane
Sorry, but rule number one about effectively implementing encryption in software is not to roll your own. Seriously consider using a pre existing encryption library.


Agreed, especially if you having problems such as figuring out the basic concepts of implementing it.

Share this post


Link to post
Share on other sites
Quote:
Original post by DevLiquidKnight
Quote:
Original post by kelcharge
I am sorry but I don't seem to understand any of that. What I meant by my first post was how would I effectively code my own form of encryption. I get the concepts but not how to code it.

Basic example of encryption:
*** Source Snippet Removed ***


That method is not good. It can be broken in a couple of minutes. For basic XOR encryption you need a large key an possibly a changing key.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!