Code Monkey home page Code Monkey logo

echoechoin / spython Goto Github PK

View Code? Open in Web Editor NEW
89.0 6.0 31.0 70.73 MB

基于AES加密算法的python源码加密 (Encryption of Python source code based on AES encryption algorithm)

Makefile 0.44% Shell 0.51% C 40.21% Python 55.81% HTML 0.48% Roff 0.30% Batchfile 0.12% CSS 0.01% JavaScript 0.03% VBScript 0.01% PLSQL 0.05% Rich Text Format 0.02% Objective-C 0.06% M4 0.42% Assembly 0.70% C++ 0.44% TeX 0.35% DIGITAL Command Language 0.03% Inno Setup 0.02% PostScript 0.01%
python python3

spython's Introduction

spython's People

Contributors

echoechoin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

spython's Issues

pip无法使用

系统:Centos7.9
GCC版本:4.8.5
make之后,make install报错pip无法安装

centos 7.9 64bit 编译2.7.15报错

Python/decrypt_source_file.c: 在函数‘dopen’中:
Python/decrypt_source_file.c:41:9: 警告:passing argument 1 of ‘decrypt_open’ discards ‘const’ qualifier from pointer target type [默认启用]
return decrypt_open(pathname);
^
Python/decrypt_source_file.c:6:12: 附注:需要类型‘char *’,但实参的类型为‘const char *’
static int decrypt_open (char *filename);
^
Python/decrypt_source_file.c: 在函数‘decrypt_open’中:
Python/decrypt_source_file.c:90:9: 错误:只允许在 C99 模式下使用‘for’循环初始化声明
for (int i = 63; i >= 0; i--) {
^
Python/decrypt_source_file.c:90:9: 附注:使用 -std=c99 或 -std=gnu99 来编译您的代码
Python/decrypt_source_file.c: 在函数‘str2hex’中:
Python/decrypt_source_file.c:114:9: 警告:对指针赋值时目标与指针符号不一致 [-Wpointer-sign]
ret = (char *) malloc (str_len/2);
^
Python/decrypt_source_file.c: 在函数‘decrypt_buf’中:
Python/decrypt_source_file.c:126:5: 警告:传递‘AES_cbc_encrypt’的第 1 个参数给指针时,目标与指针符号不一致 [-Wpointer-sign]
AES_cbc_encrypt (raw_buf, *encrpy_buf, len, &aes, iv, AES_DECRYPT);
^
In file included from Include/decrypt_source_file.h:6:0,
from Python/decrypt_source_file.c:1:
/usr/include/openssl/aes.h:107:6: 附注:需要类型‘const unsigned char *’,但实参的类型为‘char *’
void AES_cbc_encrypt(const unsigned char *in, unsigned char *out,
^
Python/decrypt_source_file.c:126:5: 警告:传递‘AES_cbc_encrypt’的第 2 个参数给指针时,目标与指针符号不一致 [-Wpointer-sign]
AES_cbc_encrypt (raw_buf, *encrpy_buf, len, &aes, iv, AES_DECRYPT);
^
In file included from Include/decrypt_source_file.h:6:0,
from Python/decrypt_source_file.c:1:
/usr/include/openssl/aes.h:107:6: 附注:需要类型‘unsigned char *’,但实参的类型为‘char *’
void AES_cbc_encrypt(const unsigned char *in, unsigned char *out,
^
Python/decrypt_source_file.c: 在文件作用域:
Python/decrypt_source_file.c:4:13: 警告:‘encrypt_buf’声明为‘static’却从未定义过 [-Wunused-function]
static void encrypt_buf (char *raw_buf, char **encrpy_buf, int len);
^
make: *** [Python/decrypt_source_file.o] 错误 1

如何添加回调函数?

为了指定文件在回调函数里面处理加解密操作,在_io_FileIO___init___imp函数里增加了回调函数 ,
image
ModuleCallBack 的定义如下
image
但是回调函数ModuleCallBack的值是空的, 没有被赋值。 实际程序main里面已经赋值了。
image
image

setModuleCallBack是主程序定义的函数体

请问这个cpython如更改,增加一个回调函数,给在主程序里面处理加解密操作?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.