Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (NnamueN, Akow, 1 invisible), 1,421 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Encryption? #372050
05/27/11 17:41
05/27/11 17:41
Joined: Apr 2010
Posts: 47
D
Darkmatters Offline OP
Newbie
Darkmatters  Offline OP
Newbie
D

Joined: Apr 2010
Posts: 47
Any one got any thougts on encryption? name,serial number that sort of thing??

I mean in a finished game, some form of protection!!
F.

Re: Encryption? [Re: Darkmatters] #372053
05/27/11 17:50
05/27/11 17:50
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
The rule on encryption is: DON'T implement it yourself.
Even if you know how the algorithm works, there are so many pitfalls, that you will most likely stumble over all of them. Use an existing crypto library that has been audited by more than 10 people and has already been used in a few projects.

If you want to protect your game from being pirated, forget it now. Its not worth the effort beside that it is a great way to get free advertisement. When my App got pirated, my sales went up by 200% (50 sales/day), so better use this. Beside that the people who really don't want to pay for your program (for whatever reason) aren't going to pay anything, no matter how much protection you put on top of it. And like encryption, you will do it wrong anyway.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: Encryption? [Re: WretchedSid] #372055
05/27/11 17:57
05/27/11 17:57
Joined: Apr 2010
Posts: 47
D
Darkmatters Offline OP
Newbie
Darkmatters  Offline OP
Newbie
D

Joined: Apr 2010
Posts: 47
Well its not really to protect against piracy, I totally agree that is a pretty lost cause, no I was thinking more of releasing the game for digital DL, with a name and serial number, that was all really.

What is the crypto library? and how would I implement it?

Thanks for you insight.

F.

Re: Encryption? [Re: Darkmatters] #372058
05/27/11 18:11
05/27/11 18:11
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Do you know the Name of the user before you issue a serial? Because in this case the most straightforward way would be to generate a salted hash out of the user name and issue this as serial. In your program you just generate the hash too and check it against the inserted serial.
Not really secure (and there are a lot of factors that can make it really insecure), but it works and is easy to implement. I would go with a long hash like SHA2 256 or even longer to avoid collisions and brute forcing a valid key.

Quote:
What is the crypto library? and how would I implement it?

There is no such thing as THE crypto library, but many crypto libraries that implement different algorithms. Depending on what you want, you would pick one. Your best bet would be an BSD or MIT licensed library, its open source but no copy left bullshit like the GPL.
The FreeBSD project includes a good crypto library that can generate hashes, OS X implements the excellent commoncrypto library which is also Open Source and can be found here http://www.opensource.apple.com/source/CommonCrypto/CommonCrypto-36064/


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: Encryption? [Re: WretchedSid] #372060
05/27/11 18:18
05/27/11 18:18
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Another thing about crypto: If you use encryption and you live in the USA or want to deploy your game from a server in the USA, you need a CCATS. This means that you must send all relevant crypto sources to a sub division of the NSA and let them review the code. Even if you use an already reviewed crypto library!
This process can take up to two months so better let them review before your game is finished so you don't have to wait up to two months to release the game (without the CCATS, you violate U.S. export rules and this can get VERY expensive!)

You don't need a CCATS if you use encryption for authentication or anti piracy, you also don't need it if your algorithm uses < 64 bit (symmetric) or < 1024 (asymmetric) bit keys. If your program uses encryption for any other purpose or if you use a larger key, you need this CCATS.

Of course, if you aren't an U.S. citizen and use a eg. an european server, you don't need a CCATS.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: Encryption? [Re: WretchedSid] #372061
05/27/11 18:32
05/27/11 18:32
Joined: Apr 2010
Posts: 47
D
Darkmatters Offline OP
Newbie
Darkmatters  Offline OP
Newbie
D

Joined: Apr 2010
Posts: 47
Hell, never thought it would be quite so complex and confusing... need time to study this a bit I think....

F.

Re: Encryption? [Re: Darkmatters] #372070
05/27/11 19:38
05/27/11 19:38
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Originally Posted By: Darkmatters
Hell, never thought it would be quite so complex and confusing... need time to study this a bit I think....

Sorry, but encryption is always complex. Or weak. But if you have questions, feel free to ask.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: Encryption? [Re: WretchedSid] #372072
05/27/11 19:42
05/27/11 19:42
Joined: Apr 2010
Posts: 47
D
Darkmatters Offline OP
Newbie
Darkmatters  Offline OP
Newbie
D

Joined: Apr 2010
Posts: 47
Well its a bit toooooo complex for me really... Thought there may be a bit of code I could "Slot in" as it were.... seems not to be the case.

Hmmmmm.!!!


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1