├── Decrypt_Test
├── .idea
│ ├── Decrypt_Test.iml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
├── Decrypt_Test
│ ├── __init__.py
│ ├── __pycache__
│ │ ├── __init__.cpython-37.pyc
│ │ ├── settings.cpython-37.pyc
│ │ ├── urls.cpython-37.pyc
│ │ └── wsgi.cpython-37.pyc
│ ├── asgi.py
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
├── db.sqlite3
├── decrypt
│ ├── __init__.py
│ ├── __pycache__
│ │ ├── __init__.cpython-37.pyc
│ │ ├── admin.cpython-37.pyc
│ │ ├── apps.cpython-37.pyc
│ │ ├── models.cpython-37.pyc
│ │ └── views.cpython-37.pyc
│ ├── admin.py
│ ├── apps.py
│ ├── migrations
│ │ ├── __init__.py
│ │ └── __pycache__
│ │ │ └── __init__.cpython-37.pyc
│ ├── models.py
│ ├── tests.py
│ └── views.py
├── manage.py
├── templates
│ └── decrypt.html
└── 运行网站-setup.cmd
├── Image
├── Excel_decrypt.png
├── Excel_normal.png
├── QR_code.PNG
└── html_pic.png
└── README.md
/Decrypt_Test/.idea/Decrypt_Test.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/Decrypt_Test/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Decrypt_Test/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Decrypt_Test/.idea/workspace.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 | true
57 | DEFINITION_ORDER
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 | 1608867623395
145 |
146 |
147 | 1608867623395
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
221 |
222 |
223 |
224 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 |
237 |
238 |
239 |
240 |
241 |
242 |
243 |
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 |
252 |
--------------------------------------------------------------------------------
/Decrypt_Test/Decrypt_Test/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liliwen365/Python/aedcb66e781bc021ba7895a47d585f86bf4f5682/Decrypt_Test/Decrypt_Test/__init__.py
--------------------------------------------------------------------------------
/Decrypt_Test/Decrypt_Test/__pycache__/__init__.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liliwen365/Python/aedcb66e781bc021ba7895a47d585f86bf4f5682/Decrypt_Test/Decrypt_Test/__pycache__/__init__.cpython-37.pyc
--------------------------------------------------------------------------------
/Decrypt_Test/Decrypt_Test/__pycache__/settings.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liliwen365/Python/aedcb66e781bc021ba7895a47d585f86bf4f5682/Decrypt_Test/Decrypt_Test/__pycache__/settings.cpython-37.pyc
--------------------------------------------------------------------------------
/Decrypt_Test/Decrypt_Test/__pycache__/urls.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liliwen365/Python/aedcb66e781bc021ba7895a47d585f86bf4f5682/Decrypt_Test/Decrypt_Test/__pycache__/urls.cpython-37.pyc
--------------------------------------------------------------------------------
/Decrypt_Test/Decrypt_Test/__pycache__/wsgi.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liliwen365/Python/aedcb66e781bc021ba7895a47d585f86bf4f5682/Decrypt_Test/Decrypt_Test/__pycache__/wsgi.cpython-37.pyc
--------------------------------------------------------------------------------
/Decrypt_Test/Decrypt_Test/asgi.py:
--------------------------------------------------------------------------------
1 | """
2 | ASGI config for Decrypt_Test project.
3 |
4 | It exposes the ASGI callable as a module-level variable named ``application``.
5 |
6 | For more information on this file, see
7 | https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
8 | """
9 |
10 | import os
11 |
12 | from django.core.asgi import get_asgi_application
13 |
14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Decrypt_Test.settings')
15 |
16 | application = get_asgi_application()
17 |
--------------------------------------------------------------------------------
/Decrypt_Test/Decrypt_Test/settings.py:
--------------------------------------------------------------------------------
1 | """
2 | Django settings for Decrypt_Test project.
3 |
4 | Generated by 'django-admin startproject' using Django 3.0.4.
5 |
6 | For more information on this file, see
7 | https://docs.djangoproject.com/en/3.0/topics/settings/
8 |
9 | For the full list of settings and their values, see
10 | https://docs.djangoproject.com/en/3.0/ref/settings/
11 | """
12 |
13 | import os
14 |
15 | # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
16 | BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
17 |
18 |
19 | # Quick-start development settings - unsuitable for production
20 | # See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
21 |
22 | # SECURITY WARNING: keep the secret key used in production secret!
23 | SECRET_KEY = '*ohz(fa^x3(78au_6abuiyn03q%bd@l_rs1bl^tgm2bel5ox)9'
24 |
25 | # SECURITY WARNING: don't run with debug turned on in production!
26 | DEBUG = True
27 |
28 | ALLOWED_HOSTS = []
29 |
30 |
31 | # Application definition
32 |
33 | INSTALLED_APPS = [
34 | 'django.contrib.admin',
35 | 'django.contrib.auth',
36 | 'django.contrib.contenttypes',
37 | 'django.contrib.sessions',
38 | 'django.contrib.messages',
39 | 'django.contrib.staticfiles',
40 | 'decrypt.apps.DecryptConfig',
41 | ]
42 |
43 | MIDDLEWARE = [
44 | 'django.middleware.security.SecurityMiddleware',
45 | 'django.contrib.sessions.middleware.SessionMiddleware',
46 | 'django.middleware.common.CommonMiddleware',
47 | 'django.middleware.csrf.CsrfViewMiddleware',
48 | 'django.contrib.auth.middleware.AuthenticationMiddleware',
49 | 'django.contrib.messages.middleware.MessageMiddleware',
50 | 'django.middleware.clickjacking.XFrameOptionsMiddleware',
51 | ]
52 |
53 | ROOT_URLCONF = 'Decrypt_Test.urls'
54 |
55 | TEMPLATES = [
56 | {
57 | 'BACKEND': 'django.template.backends.django.DjangoTemplates',
58 | 'DIRS': [os.path.join(BASE_DIR, 'templates')]
59 | ,
60 | 'APP_DIRS': True,
61 | 'OPTIONS': {
62 | 'context_processors': [
63 | 'django.template.context_processors.debug',
64 | 'django.template.context_processors.request',
65 | 'django.contrib.auth.context_processors.auth',
66 | 'django.contrib.messages.context_processors.messages',
67 | ],
68 | },
69 | },
70 | ]
71 |
72 | WSGI_APPLICATION = 'Decrypt_Test.wsgi.application'
73 |
74 |
75 | # Database
76 | # https://docs.djangoproject.com/en/3.0/ref/settings/#databases
77 |
78 | DATABASES = {
79 | 'default': {
80 | 'ENGINE': 'django.db.backends.sqlite3',
81 | 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
82 | }
83 | }
84 |
85 |
86 | # Password validation
87 | # https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators
88 |
89 | AUTH_PASSWORD_VALIDATORS = [
90 | {
91 | 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
92 | },
93 | {
94 | 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
95 | },
96 | {
97 | 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
98 | },
99 | {
100 | 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
101 | },
102 | ]
103 |
104 |
105 | # Internationalization
106 | # https://docs.djangoproject.com/en/3.0/topics/i18n/
107 |
108 | LANGUAGE_CODE = 'en-us'
109 |
110 | TIME_ZONE = 'UTC'
111 |
112 | USE_I18N = True
113 |
114 | USE_L10N = True
115 |
116 | USE_TZ = True
117 |
118 |
119 | # Static files (CSS, JavaScript, Images)
120 | # https://docs.djangoproject.com/en/3.0/howto/static-files/
121 |
122 | STATIC_URL = '/static/'
123 |
--------------------------------------------------------------------------------
/Decrypt_Test/Decrypt_Test/urls.py:
--------------------------------------------------------------------------------
1 | """Decrypt_Test URL Configuration
2 |
3 | The `urlpatterns` list routes URLs to views. For more information please see:
4 | https://docs.djangoproject.com/en/3.0/topics/http/urls/
5 | Examples:
6 | Function views
7 | 1. Add an import: from my_app import views
8 | 2. Add a URL to urlpatterns: path('', views.home, name='home')
9 | Class-based views
10 | 1. Add an import: from other_app.views import Home
11 | 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
12 | Including another URLconf
13 | 1. Import the include() function: from django.urls import include, path
14 | 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
15 | """
16 | from django.contrib import admin
17 | from django.urls import path
18 | from decrypt.views import decrypt
19 |
20 | urlpatterns = [
21 | path('admin/', admin.site.urls),
22 | path('decrypt/', decrypt),
23 | ]
24 |
--------------------------------------------------------------------------------
/Decrypt_Test/Decrypt_Test/wsgi.py:
--------------------------------------------------------------------------------
1 | """
2 | WSGI config for Decrypt_Test project.
3 |
4 | It exposes the WSGI callable as a module-level variable named ``application``.
5 |
6 | For more information on this file, see
7 | https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
8 | """
9 |
10 | import os
11 |
12 | from django.core.wsgi import get_wsgi_application
13 |
14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Decrypt_Test.settings')
15 |
16 | application = get_wsgi_application()
17 |
--------------------------------------------------------------------------------
/Decrypt_Test/db.sqlite3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liliwen365/Python/aedcb66e781bc021ba7895a47d585f86bf4f5682/Decrypt_Test/db.sqlite3
--------------------------------------------------------------------------------
/Decrypt_Test/decrypt/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liliwen365/Python/aedcb66e781bc021ba7895a47d585f86bf4f5682/Decrypt_Test/decrypt/__init__.py
--------------------------------------------------------------------------------
/Decrypt_Test/decrypt/__pycache__/__init__.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liliwen365/Python/aedcb66e781bc021ba7895a47d585f86bf4f5682/Decrypt_Test/decrypt/__pycache__/__init__.cpython-37.pyc
--------------------------------------------------------------------------------
/Decrypt_Test/decrypt/__pycache__/admin.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liliwen365/Python/aedcb66e781bc021ba7895a47d585f86bf4f5682/Decrypt_Test/decrypt/__pycache__/admin.cpython-37.pyc
--------------------------------------------------------------------------------
/Decrypt_Test/decrypt/__pycache__/apps.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liliwen365/Python/aedcb66e781bc021ba7895a47d585f86bf4f5682/Decrypt_Test/decrypt/__pycache__/apps.cpython-37.pyc
--------------------------------------------------------------------------------
/Decrypt_Test/decrypt/__pycache__/models.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liliwen365/Python/aedcb66e781bc021ba7895a47d585f86bf4f5682/Decrypt_Test/decrypt/__pycache__/models.cpython-37.pyc
--------------------------------------------------------------------------------
/Decrypt_Test/decrypt/__pycache__/views.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liliwen365/Python/aedcb66e781bc021ba7895a47d585f86bf4f5682/Decrypt_Test/decrypt/__pycache__/views.cpython-37.pyc
--------------------------------------------------------------------------------
/Decrypt_Test/decrypt/admin.py:
--------------------------------------------------------------------------------
1 | from django.contrib import admin
2 |
3 | # Register your models here.
4 |
--------------------------------------------------------------------------------
/Decrypt_Test/decrypt/apps.py:
--------------------------------------------------------------------------------
1 | from django.apps import AppConfig
2 |
3 |
4 | class DecryptConfig(AppConfig):
5 | name = 'decrypt'
6 |
--------------------------------------------------------------------------------
/Decrypt_Test/decrypt/migrations/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liliwen365/Python/aedcb66e781bc021ba7895a47d585f86bf4f5682/Decrypt_Test/decrypt/migrations/__init__.py
--------------------------------------------------------------------------------
/Decrypt_Test/decrypt/migrations/__pycache__/__init__.cpython-37.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liliwen365/Python/aedcb66e781bc021ba7895a47d585f86bf4f5682/Decrypt_Test/decrypt/migrations/__pycache__/__init__.cpython-37.pyc
--------------------------------------------------------------------------------
/Decrypt_Test/decrypt/models.py:
--------------------------------------------------------------------------------
1 | from django.db import models
2 |
3 | # Create your models here.
4 |
--------------------------------------------------------------------------------
/Decrypt_Test/decrypt/tests.py:
--------------------------------------------------------------------------------
1 | from django.test import TestCase
2 |
3 | # Create your tests here.
4 |
--------------------------------------------------------------------------------
/Decrypt_Test/decrypt/views.py:
--------------------------------------------------------------------------------
1 | from django.shortcuts import render,redirect
2 | # Create your views here.
3 | def decrypt(request):
4 | """解密文件"""
5 | if request.method == "GET":
6 | return render(request, "decrypt.html")
7 | else:
8 | # 获取文件
9 | addr = request.POST.get('title')
10 | pic = request.FILES.getlist("pic")
11 | for obj in pic:
12 | print('filename:',obj.name)
13 | print('filesize:',obj.size)
14 |
15 | #pic = request.FILES["pic"]
16 | # 创建一个文件
17 | save_path = "%s/%s" % (addr,obj.name)
18 | with open(save_path, "wb") as f:
19 | # 获取上传文件的内容并写入打开的文件
20 | for content in obj.chunks():
21 | f.write(content)
22 | # 返回
23 | return redirect("/decrypt")
24 | # return JsonResponse({"msg": "OK!"})
25 |
26 |
--------------------------------------------------------------------------------
/Decrypt_Test/manage.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | """Django's command-line utility for administrative tasks."""
3 | import os
4 | import sys
5 |
6 |
7 | def main():
8 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Decrypt_Test.settings')
9 | try:
10 | from django.core.management import execute_from_command_line
11 | except ImportError as exc:
12 | raise ImportError(
13 | "Couldn't import Django. Are you sure it's installed and "
14 | "available on your PYTHONPATH environment variable? Did you "
15 | "forget to activate a virtual environment?"
16 | ) from exc
17 | execute_from_command_line(sys.argv)
18 |
19 |
20 | if __name__ == '__main__':
21 | main()
22 |
--------------------------------------------------------------------------------
/Decrypt_Test/templates/decrypt.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 解密亿赛通文件
6 |
7 |
8 | 文件上传
9 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/Decrypt_Test/运行网站-setup.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 | echo *****************************
3 | echo *Web is start....*
4 | echo *****************************
5 | python .\manage.py runserver 127.0.0.1:8000
6 |
7 | echo All done successfully!
8 | pause
9 | exit
10 |
11 |
--------------------------------------------------------------------------------
/Image/Excel_decrypt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liliwen365/Python/aedcb66e781bc021ba7895a47d585f86bf4f5682/Image/Excel_decrypt.png
--------------------------------------------------------------------------------
/Image/Excel_normal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liliwen365/Python/aedcb66e781bc021ba7895a47d585f86bf4f5682/Image/Excel_normal.png
--------------------------------------------------------------------------------
/Image/QR_code.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liliwen365/Python/aedcb66e781bc021ba7895a47d585f86bf4f5682/Image/QR_code.PNG
--------------------------------------------------------------------------------
/Image/html_pic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liliwen365/Python/aedcb66e781bc021ba7895a47d585f86bf4f5682/Image/html_pic.png
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Python 解密亿赛通加密文件
2 |
3 | ## 概述
4 |
5 | 很多小伙伴在看到亿赛通加密系统的时候,想必非常头疼,Excel,word,PPT文件全部会被加密,打上一把黄色的锁(如下图),今天分享一下关于如何解密亿赛通加密系统文件。如何在本地电脑解密的方法!此方法需要使用到的工具是Python语言,用到的第三包有Django,项目运行前的环境配置,以下环境需你自己安装解决。
6 |
7 | 1. 安装好python安装包
8 | 安装方法:https://www.python.org/ 官网下载exe文件,双击安装(注意python需要加入环境变量,具体方法可参考:https://mp.weixin.qq.com/s/99f1W0iS4BtdekaBpUaA_Q)
9 | 2. 安装Django第三方包
10 | 运行里搜索cmd,在弹出的黑框中输入pip install Django
11 |
12 |
13 |  
14 |
15 |
16 | ## 解密步骤
17 | ### 一、github下载源码到本地,并解压。
18 | ### 二、运行网站方法(推荐方法2)
19 | 方法1:
20 | 在电脑运行里输入cmd,弹出命令框,输入如下代码
21 | cd "代码所在的文件夹路径/Decrypt_Test"
22 | python manage.py runserver 127.0.0.1:8000
23 | 方法2:
24 | 直接双击 ‘运行网站-setup.cmd’文件即可
25 | ### 三、浏览器进入网址:http://127.0.0.1:8000/decrypt
26 | 浏览器输入网址后,如下图:选择需要解密的文件,点击上传并解密。解密后的文件默认存放在"D:\"根目录下。
27 |
28 | 
29 |
30 | ## 解密操作视频地址
31 | [B站视频地址-亿赛通加密文件的解密方法](https://b23.tv/BV1Lh411275u)
32 |
33 | ## 关注公众号
34 | 欢迎大家关注公众号:Python利剑,公众号文章里面为大家详细介绍解密原理。
35 |
36 | 
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------