buenas Tardes
Al comprimir con el objecto CompressorObject y pasarle un password encriptado me devuelve
-2 -- The password entered is ilegal.
Este es el codigo utlizado
string ls_source, ls_target,ls_clave
Blob lblb_data
Blob lblb_key
Blob lblb_iv
Blob lblb_encrypt
Blob lblb_decrypt
string ls_data
Blob lblb_key
Blob lblb_iv
Blob lblb_encrypt
Blob lblb_decrypt
string ls_data
CrypterObject Inv_CrypterObject
Inv_CrypterObject = CREATE CrypterObject
debugbreak()
//// tomamos el valor a encriptar y lo pasamos a blob
ls_data = 'Test AES' //sle_1.text
lblb_data = Blob(ls_data, EncodingANSI!)
//
//// declaramos nuestra llave privada y publica
lblb_key = Blob("prue Key12345678", EncodingANSI!)
//// Encrypt data using AES
lblb_encrypt = Inv_CrypterObject.SymmetricEncrypt(AES!, lblb_data, lblb_key)
///////////////////////////
ls_clave =string(lblb_encrypt)
ls_source = "C:\Users\luisavilan\Documents\readme.txt"
ls_target = "C:\Users\luisavilan\Documents\comprimir"
lnv_compress = create CompressorObject
lnv_compress.password = ls_clave
ls_target = "C:\Users\luisavilan\Documents\comprimir"
lnv_compress = create CompressorObject
lnv_compress.password = ls_clave
li_return = lnv_compress.Compress(ls_source,ls_target, ArchiveFormatZIP!)
messagebox("",li_return)
messagebox("",li_return)
-2 -- The password entered is ilegal.