Hi Guys,

I'm really interested in C++ and am currently making a basic Text based poker game.

on a sideline to this does anyone know any simple encryption code or where to start when doing this? For instance taking a text file (.txt or even .doc?) and creating your own encryption key and encrypting and decrypting.

Also wonder about password protection and things like this.

Cheers,

G.

How simple?

This is simple
http://en.wikipedia.org/wiki/ROT13

Effectiveness on the other hand depends on who you consider to be your adversaries (those who want to break your encryption).

Computer illiterate Joe Public is one end.
No Such Agency is another.

Start with the Caesar Cipher and go from there. There are a bunch of algorithms out there and most of them are public, so you can find an already written program and check your answer against that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.