Page 1 of 1
PC1 algorithm
Posted: Thu Jan 23, 2014 5:57 pm
by garduino
Hi:
I would like to know if the PC1 algorithm is implemented in LiveCode somewhere (My search did not found results).
Thanks.
Re: PC1 algorithm
Posted: Thu Jan 23, 2014 6:42 pm
by FourthWorld
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.
Re: PC1 algorithm
Posted: Thu Jan 23, 2014 6:53 pm
by Klaus
Hola garduino,
1. welcome to the forum!
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
Best
Klaus
Re: PC1 algorithm
Posted: Thu Jan 23, 2014 7:21 pm
by garduino
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!
Re: PC1 algorithm
Posted: Mon Feb 10, 2014 11:06 pm
by garduino
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.