标题: Loadrunner对字符串进行Base64加密,有童鞋实现的吗? [打印本页] 作者: a_a_yu 时间: 2014-12-17 14:52 标题: Loadrunner对字符串进行Base64加密,有童鞋实现的吗? 我在网上搜了个base64.h的头文件
/*
Base 64 Encode and Decode functions for LoadRunner
==================================================
This include file provides functions to Encode and Decode
LoadRunner variables. It's based on source codes found on the
internet and has been modified to work in LoadRunner.
Created by Kim Sandell / Celarius - www.celarius.com
*/
char *src;
char *dest;
int len;
// Encoding lookup table
char base64encode_lut[] = {
'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q',
'R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f','g','h',
'i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y',
'z','0','1','2','3','4','5','6','7','8','9','+','/','='};