LoadRunner 调用第三方加密(解密)算法 字符串出错
本帖最后由 lotus002673 于 2016-1-20 12:14 编辑各位大侠,我想在LoadRunner里做一下DES3的解密。我在网上搜到了源码,做成dll,在LoadRunner里调用。可是字符串出现了乱码,麻烦各位大侠看一下。
代码如下:
unsigned char en_out_put = "1";
unsigned char en_data[] = "65D1C68554AE354D5B50A052409895A14533CF605833DF7D13150E99B51244692A6C621645CA1D4AB0931B6DA213B9EAF4C18D9F61B5D465E0E4AB810FBA5628082B7E0802BF76089EA04A043203C6093343FCA4E44ACA5FD9EBFF9DF5D182F6BCAFA64B01E664288D13EE2B8FEEDBBDBEA141831E37FC13B735C89F049BB0017E460E1581781EFE1F7688E326F3B8E731D1FB364CCB360AF73A7ECB90598988DE81A40CA8FF1C4D662965FFC45D93C31BF00CA673CE5B7D37379D03147554E6B5590F192F83DEF2BF623D7BB2D2E3039B08ADD5ED609420D84B648632809A63";
const unsigned char key1[] = "secretKeysecretKeysecretKeysecretKey";
des(en_data, key1, en_out_put, 1);
lr_log_message("明文是%s", en_out_put);
结果:明文是O?苑|W
用的源码是网上找到的,附件里是源码,和dll文件
谢谢各位了
页:
[1]