Skip to content

Commit 281d8ee

Browse files
authored
Merge branch 'master' into fixes-1
2 parents 452c27d + ac01f10 commit 281d8ee

File tree

4 files changed

+20
-9
lines changed

4 files changed

+20
-9
lines changed

‎README.md‎

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,17 @@ A tool to do some xor analysis:
66
- guess the key length (based on count of equal chars)
77
- guess the key (base on knowledge of most frequent char)
88

9-
**Notice:** xortool is moving to Python 3, the PyPI package will be upgraded soon. The old Python 2 version is accessible at the `py2` branch.
9+
**Notice:** xortool is now only running on Python 3. The old Python 2 version is accessible at the `py2` branch. The **pip** package has been updated.
10+
11+
Installation
12+
---------------------
13+
14+
**xortool** can be installed using **pip**. The recommended way is to run the following command, which installs xortool only for current user. Remove the `--user` flag and run from root if global installation is preferred.
15+
16+
```bash
17+
python3 -m pip install --user xortool
18+
```
19+
1020

1121
Usage
1222
---------------------
@@ -175,6 +185,6 @@ By filtering the outputs on the character set of Base64, we directly keep the on
175185
Information
176186
---------------------
177187
178-
Author: hellman ( hellman1908@gmail.com )
188+
Author: hellman
179189
180-
License: MIT License (opensource.org/licenses/MIT)
190+
License: [MIT License](https://opensource.org/licenses/MIT)

‎setup.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env python3
2-
# -*- coding:utf-8 -*-
32

4-
from distutils.core import setup
3+
from setuptools import setup
54

65
import xortool
76

@@ -15,19 +14,21 @@
1514
url='https://github.com/hellman/xortool',
1615
description='Tool for xor cipher analysis',
1716
long_description=open("README.md").read(), # not in rst, but something
17+
long_description_content_type="text/markdown",
1818
keywords="xor xortool analysis",
1919

2020
packages=['xortool'],
2121
provides=['xortool'],
2222
install_requires=['docopt>=0.6.1'],
23+
setup_requires=['wheel'],
2324
scripts=["xortool/xortool", "xortool/xortool-xor"],
2425

26+
python_requires='>=3',
2527
classifiers=['Development Status :: 4 - Beta',
2628
'Intended Audience :: Science/Research',
2729
'Intended Audience :: Information Technology',
2830
'Natural Language :: English',
2931
'Operating System :: OS Independent',
30-
'Programming Language :: Python :: 2',
3132
'Programming Language :: Python :: 3',
3233
'License :: OSI Approved :: MIT License',
3334
'Topic :: Scientific/Engineering :: Mathematics',

‎test/test.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ tool_xored test/data/tool_xored
191191

192192
xortool -c 00 --key-length=10 test/data/binary_xored
193193
f_cmp="$(grep 'secret_key' xortool_out/filename-key.csv|cut -d\; -f1)"
194-
./xortool/xortool-xor -n -r secret_key -f "$f_cmp" | \
194+
xortool-xor -n -r secret_key -f "$f_cmp" | \
195195
cmp test/data/binary_xored
196-
./xortool/xortool-xor -n -r secret_key -f test/data/binary_xored | \
196+
xortool-xor -n -r secret_key -f test/data/binary_xored | \
197197
cmp "$f_cmp"
198198

199199
echo OK

‎xortool/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
__all__ = "args", "colors", "libcolors", "routine"
2-
__version__ = "0.98"
2+
__version__ = "0.99"

0 commit comments

Comments
 (0)