Livecode Wiki
Advertisement

The cipherNames function returns a list of ciphers and their associated default key lengths in bits.

Built-in Function handler[]

Syntax:

put the cipherNames into tCypherNameList

Some ciphers like blowfish accept key lengths up to 448 bits where 128 is the default, others have fixed sized key lengths.

The cipherNames function is part of the SSL & Encryption library. To ensure that the function works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions section on the General screen of the Standalone Application Settings window, make sure "SSL & Encryption" is selected in the list of script libraries.

Usually ciphernames returns:

  • aes-128-cbc,128
  • aes-128-cfb,128
  • aes-128-cfb1,128
  • aes-128-cfb8,128
  • aes-128-ctr,128
  • aes-128-ecb,128
  • aes-128-gcm,128
  • aes-128-ofb,128
  • aes-128-xts,256
  • aes-192-cbc,192
  • aes-192-cfb,192
  • aes-192-cfb1,192
  • aes-192-cfb8,192
  • aes-192-ctr,192
  • aes-192-ecb,192
  • aes-192-gcm,192
  • aes-192-ofb,192
  • aes-256-cbc,256
  • aes-256-cfb,256
  • aes-256-cfb1,256
  • aes-256-cfb8,256
  • aes-256-ctr,256
  • aes-256-ecb,256
  • aes-256-gcm,256
  • aes-256-ofb,256
  • aes-256-xts,512
  • aes128,128
  • aes192,192
  • aes256,256
  • bf,128
  • bf-cbc,128
  • bf-cfb,128
  • bf-ecb,128
  • bf-ofb,128
  • blowfish,128
  • camellia-128-cbc,128
  • camellia-128-cfb,128
  • camellia-128-cfb1,128
  • camellia-128-cfb8,128
  • camellia-128-ecb,128
  • camellia-128-ofb,128
  • camellia-192-cbc,192
  • camellia-192-cfb,192
  • camellia-192-cfb1,192
  • camellia-192-cfb8,192
  • camellia-192-ecb,192
  • camellia-192-ofb,192
  • camellia-256-cbc,256
  • camellia-256-cfb,256
  • camellia-256-cfb1,256
  • camellia-256-cfb8,256
  • camellia-256-ecb,256
  • camellia-256-ofb,256
  • camellia128,128
  • camellia192,192
  • camellia256,256
  • 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-cfb1,192
  • des-ede3-cfb8,192
  • des-ede3-ofb,192
  • des-ofb,64
  • des3,192
  • desx,192
  • desx-cbc,192
  • id-aes128-GCM,128
  • id-aes192-GCM,192
  • id-aes256-GCM,256
  • 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
  • rc4-hmac-md5,128
  • seed,128
  • seed-cbc,128
  • seed-cfb,128
  • seed-ecb,128
  • seed-ofb,128

See Also: encrypt Command

Advertisement