Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,388 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İ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 | 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