How to encrypt?

For questions about using Classic.

Post » Fri Jan 28, 2011 1:02 am

I would like help encrypting an array (too bad there is no md5 or sha1 function :( )
B
83
S
21
G
15
Posts: 1,039
Reputation: 15,134

Post » Sat Jan 29, 2011 1:02 pm

I don't think there's a way to directly encrypt a normal array. However the S plugin is able to save to encrypted files. It's the only method I'm aware of with Construct and the plug is really worth looking into.
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Sat Jan 29, 2011 1:41 pm

[url:36v924ia]http://www.scirra.com/forum/viewtopic.php?f=16&t=1613&p=11290&hilit=md5#p11290[/url:36v924ia]
Still works.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Mon Feb 07, 2011 9:24 pm

Just to avoid confusion:
MD5 is NOT an encryption algorithm. It's a hash.
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Mon Feb 07, 2011 11:28 pm

[quote="madster":1deybvsy]MD5 is NOT an encryption algorithm. It's a hash.[/quote:1deybvsy]
Very true..I was going to post the same.

You actually can encrypt with SHA-1 or MD5 if you use an HMAC...but it is not straightforward:
http://en.wikipedia.org/wiki/HMAC...although I wouldn't recommend using MD5 due to hash collisions.

So in summary.. use S or Python. ;-)
B
8
S
3
G
7
Posts: 835
Reputation: 5,313

Post » Tue Feb 08, 2011 1:25 pm

Use hash object instead? I think it looks harder to read in notepad at least.
B
4
S
1
G
1
Posts: 63
Reputation: 776


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests