Gamestudio Links
Zorro Links
Newest Posts
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
1 registered members (AbrahamR), 717 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Encrypt #328408
06/13/10 00:22
06/13/10 00:22
Joined: Jul 2004
Posts: 1,710
MMike Offline OP
Serious User
MMike  Offline OP
Serious User

Joined: Jul 2004
Posts: 1,710
Hello

How can i encrypt a string?
for example:
I have this email: mm@ne.com..
and i want to make a unique identifier of that, to save as a file, in a txt file. but the name of the txt file cant be the email so to speak.
So.. i though about using somekind of hash md5 or another simpler.. but i think there is no function included for that right?
i want to make it or a numer 147912748198 or 82h2tf98f2he5c3 string

Re: Encrypt [Re: MMike] #328410
06/13/10 00:30
06/13/10 00:30
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Here is a really great SHA2 implementation in C:
http://www.ouah.org/ogay/sha2/

Should be work without any changes with Lite-C


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: Encrypt [Re: MMike] #328411
06/13/10 00:32
06/13/10 00:32
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
hashing algorithms like md5 is virtually irreversible.

(i.e. you can't have the email back from the hash itself)

but if that's what you need, i am sure you can easly find C implementations of md5, that probably will directly work in lite-c or need very little editing.


3333333333
Re: Encrypt [Re: Quad] #328413
06/13/10 01:17
06/13/10 01:17
Joined: Jul 2004
Posts: 1,710
MMike Offline OP
Serious User
MMike  Offline OP
Serious User

Joined: Jul 2004
Posts: 1,710
Quadraxas, i know, i dont need the reverse... its one way convertiong, to obtain an unique ID number.

Thnaks for all.


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