PC1 algorithm

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
garduino
Posts: 7
Joined: Thu Jan 09, 2014 6:01 pm

PC1 algorithm

Post by garduino » Thu Jan 23, 2014 5:57 pm

Hi:

I would like to know if the PC1 algorithm is implemented in LiveCode somewhere (My search did not found results).

Thanks.
Germán S. Arduino
Arduino Software | www.arduinosoftware.com

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: PC1 algorithm

Post by FourthWorld » Thu Jan 23, 2014 6:42 pm

PC1 is not currently supported in the LiveCode engine, though one could write an external if that specific algo is needed.

You can, however, use the built-in "encrypt" command for strong security using keys of 128 or 256 bits as PC1 does - see the Dictionary entry for the "encrypt" command for details.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: PC1 algorithm

Post by Klaus » Thu Jan 23, 2014 6:53 pm

Hola garduino,

1. welcome to the forum! :D

2. I entered "put the ciphernames" into the message box and this is what I got,
item 1 is the name of the algorithm, item 2 the key lengths in bits:
aes-128-cbc,128
aes-128-cfb,128
aes-128-cfb1,128
aes-128-cfb8,128
aes-128-ecb,128
aes-128-ofb,128
aes-192-cbc,192
aes-192-cfb,192
aes-192-cfb1,192
aes-192-cfb8,192
aes-192-ecb,192
aes-192-ofb,192
aes-256-cbc,256
aes-256-cfb,256
aes-256-cfb1,256
aes-256-cfb8,256
aes-256-ecb,256
aes-256-ofb,256
aes128,128
aes192,192
aes256,256
bf,128
bf-cbc,128
bf-cfb,128
bf-ecb,128
bf-ofb,128
blowfish,128
cast,128
cast-cbc,128
cast5-cbc,128
cast5-cfb,128
cast5-ecb,128
cast5-ofb,128
des,64
des-cbc,64
des-cfb,64
des-cfb1,64
des-cfb8,64
des-ecb,64
des-ede,128
des-ede-cbc,128
des-ede-cfb,128
des-ede-ofb,128
des-ede3,192
des-ede3-cbc,192
des-ede3-cfb,192
des-ede3-ofb,192
des-ofb,64
des3,192
desx,192
desx-cbc,192
rc2,128
rc2-40-cbc,40
rc2-64-cbc,64
rc2-cbc,128
rc2-cfb,128
rc2-ecb,128
rc2-ofb,128
rc4,128
rc4-40,40
rc5,128
rc5-cbc,128
rc5-cfb,128
rc5-ecb,128
rc5-ofb,128

Should fit your needs somehow :D


Best

Klaus

garduino
Posts: 7
Joined: Thu Jan 09, 2014 6:01 pm

Re: PC1 algorithm

Post by garduino » Thu Jan 23, 2014 7:21 pm

Thanks you guys!

Yes, I know the built-in algo's provided by LiveCode, just asking is someone implemented the PC1, because I need to deal with an old piece of software and surely will need it.

Thanks!
Germán S. Arduino
Arduino Software | www.arduinosoftware.com

garduino
Posts: 7
Joined: Thu Jan 09, 2014 6:01 pm

Re: PC1 algorithm

Post by garduino » Mon Feb 10, 2014 11:06 pm

FourthWorld wrote:PC1 is not currently supported in the LiveCode engine, though one could write an external if that specific algo is needed.

You can, however, use the built-in "encrypt" command for strong security using keys of 128 or 256 bits as PC1 does - see the Dictionary entry for the "encrypt" command for details.
Another question about this is, encrypt/decrypt is not supported in mobile platforms, as I saw. How do you guys solve this, how do you encrypt/decrypt in Android/iOS ?

Thanks.
Germán S. Arduino
Arduino Software | www.arduinosoftware.com

Post Reply