资源简介
完整可以用在二次开发,节约时间成本,
代码片段和文件信息
/***********************************************************************
Copyright 2006-2007 Ma Bingyao
These sources is free software. Redistributions of source code must
retain the above copyright notice. Redistributions in binary form
must reproduce the above copyright notice. You can redistribute it
freely. You can use it with any free or commercial software.
These sources is distributed in the hope that it will be useful
but WITHOUT ANY WARRANTY. Without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
You may contact the author by:
e-mail: andot@coolcode.cn
*************************************************************************/
#ifdef HAVE_CONFIG_H
#include “config.h“
#endif
#include “php.h“
#if HAVE_XXTEA
#include “php_xxtea.h“
#include “ext/standard/info.h“ /* for phpinfo() functions */
#include “xxtea.h“
/* compiled function list so Zend knows what‘s in this module */
zend_function_entry xxtea_functions[] =
{
ZEND_FE(xxtea_encrypt NULL)
ZEND_FE(xxtea_decrypt NULL)
ZEND_FE(xxtea_info NULL)
{NULL NULL NULL}
};
/* compiled module information */
zend_module_entry xxtea_module_entry =
{
STANDARD_MODULE_HEADER
XXTEA_MODULE_NAME
xxtea_functions
ZEND_MINIT(xxtea)
ZEND_MSHUTDOWN(xxtea)
NULL
NULL
ZEND_MINFO(xxtea)
XXTEA_VERSION
STANDARD_MODULE_PROPERTIES
};
/* implement standard “stub“ routine to introduce ourselves to Zend */
#if defined(COMPILE_DL_XXTEA)
ZEND_GET_MODULE(xxtea)
#endif
static xxtea_long *xxtea_to_long_array(unsigned char *data xxtea_long len int include_length xxtea_long *ret_len) {
xxtea_long i n *result;
n = len >> 2;
n = (((len & 3) == 0) ? n : n + 1);
if (include_length) {
result = (xxtea_long *)emalloc((n + 1) << 2);
result[n] = len;
*ret_len = n + 1;
} else {
result = (xxtea_long *)emalloc(n << 2);
*ret_len = n;
}
memset(result 0 n << 2);
for (i = 0; i < len; i++) {
result[i >> 2] |= (xxtea_long)data[i] << ((i & 3) << 3);
}
return result;
}
static unsigned char *xxtea_to_byte_array(xxtea_long *data xxtea_long len int include_length xxtea_long *ret_len) {
xxtea_long i n m;
unsigned char *result;
n = len << 2;
if (include_length) {
m = data[len - 1];
if ((m < n - 7) || (m > n - 4)) return NULL;
n = m;
}
result = (unsigned char *)emalloc(n + 1);
for (i = 0; i < n; i++) {
result[i] = (unsigned char)((data[i >> 2] >> ((i & 3) << 3)) & 0xff);
}
result[n] = ‘\0‘;
*ret_len = n;
return result;
}
static unsigned char *php_xxtea_encrypt(unsigned char *data xxtea_long len unsigned char *key xxtea_long *ret_len) {
unsigned char *result;
xxtea_long *v *k v_len k_len;
v = xxtea_to_long_array(data len 1 &v_len);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 181 2016-02-19 18:42 2019最新三维九度分销源码下载\.htaccess
文件 4261 2016-06-23 14:10 2019最新三维九度分销源码下载\Application\Admin\Controller\ActionController.class.php
文件 20774 2016-03-27 19:16 2019最新三维九度分销源码下载\Application\Admin\Controller\ba
文件 29249 2016-04-26 14:17 2019最新三维九度分销源码下载\Application\Admin\Controller\DailiController.class.php
文件 9784 2016-05-06 17:34 2019最新三维九度分销源码下载\Application\Admin\Controller\IndexController.class.php
文件 23648 2016-04-19 16:54 2019最新三维九度分销源码下载\Application\Admin\Controller\ShopController.class.php
文件 5481 2016-03-27 16:40 2019最新三维九度分销源码下载\Application\Admin\Controller\UserController.class.php
文件 686 2015-06-18 17:12 2019最新三维九度分销源码下载\Application\Admin\View\ba
文件 4540 2016-03-25 17:03 2019最新三维九度分销源码下载\Application\Admin\View\ba
文件 3105 2016-03-25 17:04 2019最新三维九度分销源码下载\Application\Admin\View\ba
文件 12153 2016-03-22 16:39 2019最新三维九度分销源码下载\Application\Admin\View\ba
文件 4829 2015-10-16 16:53 2019最新三维九度分销源码下载\Application\Admin\View\ba
文件 3032 2016-03-25 17:05 2019最新三维九度分销源码下载\Application\Admin\View\ba
文件 5163 2016-03-25 17:06 2019最新三维九度分销源码下载\Application\Admin\View\ba
文件 1988 2016-03-22 16:34 2019最新三维九度分销源码下载\Application\Admin\View\ba
文件 3292 2016-03-25 17:05 2019最新三维九度分销源码下载\Application\Admin\View\ba
文件 2560 2016-03-25 17:06 2019最新三维九度分销源码下载\Application\Admin\View\ba
文件 8748 2016-04-29 19:37 2019最新三维九度分销源码下载\Application\Admin\View\Daili_contact.html
文件 1721 2016-04-19 16:25 2019最新三维九度分销源码下载\Application\Admin\View\Daili_daijin.html
文件 629 2016-04-19 16:31 2019最新三维九度分销源码下载\Application\Admin\View\Daili_daijin_ajax.html
文件 4625 2016-04-15 14:03 2019最新三维九度分销源码下载\Application\Admin\View\Daili_daili.html
文件 998 2016-04-15 14:03 2019最新三维九度分销源码下载\Application\Admin\View\Daili_daili_ajax.html
文件 3904 2016-03-25 17:08 2019最新三维九度分销源码下载\Application\Admin\View\Daili_hongbao.html
文件 689 2016-03-22 17:30 2019最新三维九度分销源码下载\Application\Admin\View\Daili_hongbao_ajax.html
文件 385 2015-10-16 16:53 2019最新三维九度分销源码下载\Application\Admin\View\Daili_imgtest.html
文件 13901 2016-04-13 15:48 2019最新三维九度分销源码下载\Application\Admin\View\Daili_index.html
文件 5189 2016-03-22 16:42 2019最新三维九度分销源码下载\Application\Admin\View\Daili_orders.html
文件 1964 2016-03-03 21:00 2019最新三维九度分销源码下载\Application\Admin\View\Daili_orders_ajax.html
文件 4915 2016-04-15 12:15 2019最新三维九度分销源码下载\Application\Admin\View\Daili_users.html
文件 1019 2016-04-15 12:15 2019最新三维九度分销源码下载\Application\Admin\View\Daili_users_ajax.html
............此处省略2597个文件信息
- 上一篇:白话大数据和深度学习_2018最新版
- 下一篇:光纤通信PDF课件---北邮
评论
共有 条评论