0 registered members (),
1,397
guests, and 7
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
ASCII Table different?
#375017
06/23/11 10:09
06/23/11 10:09
|
Joined: Mar 2008
Posts: 2,247 Baden Württemberg, Germany
Espér
OP
Expert
|
OP
Expert
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
|
Hi there..
My Team and i are coding a en-/decryption system for our Updater.. But we are unsure with the ASCII table..
A8 seems to start with 32 (space).. a normal table starts with 0 (NULL)...
Has A8 the complete table (0-255), and just shows 32 - 127.. or just the 32-127?
Last edited by Espér; 06/23/11 10:09.
|
|
|
Re: ASCII Table different?
[Re: Espér]
#375018
06/23/11 10:14
06/23/11 10:14
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
A char has always 8 byte in Lite-C and is always unsigned, so you have the full range of 0-255. Whats displayed on eg. TEXT elements has nothing to do with this but only with a) the used font and b) how the glyphing system of Gamestudio works.
Anyway, if you still use the same encryption like in the last thread: Please, throw it away together with the coder who proposed it as secure! Its not secure, its easily breakable in a few _SECONDS_!
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Re: ASCII Table different?
[Re: Stromausfall]
#375040
06/23/11 11:33
06/23/11 11:33
|
Joined: Mar 2008
Posts: 2,247 Baden Württemberg, Germany
Espér
OP
Expert
|
OP
Expert
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
|
i don´t want to create a dll.. i just want to USE it.. ._. It would make no sense to create a dll with the same en-/decryption code as in lite-c.. so.. When i want to use a premade cryption library.. how to include it into my game, and how to make use of it´s functions?
Last edited by Espér; 06/23/11 11:36.
|
|
|
Re: ASCII Table different?
[Re: Stromausfall]
#375053
06/23/11 12:14
06/23/11 12:14
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
No, you can also use the WinAPI to get the exported symbols and then call them:
long dllHandle = LoadLibrary("myAwesomeDll.dll");
someFunctionPrototypeWithMatchingSignature = GetProcAddress(dllHandle, "exportedFunction");
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
|