cccs-ssdeep 3.4.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. cccs_ssdeep-3.4.2/CHANGELOG.rst +85 -0
  2. cccs_ssdeep-3.4.2/CONTRIBUTING.rst +95 -0
  3. cccs_ssdeep-3.4.2/LICENSE +165 -0
  4. cccs_ssdeep-3.4.2/MANIFEST.in +12 -0
  5. cccs_ssdeep-3.4.2/PKG-INFO +151 -0
  6. cccs_ssdeep-3.4.2/README.rst +112 -0
  7. cccs_ssdeep-3.4.2/docs/Makefile +177 -0
  8. cccs_ssdeep-3.4.2/docs/make.bat +242 -0
  9. cccs_ssdeep-3.4.2/docs/requirements.txt +1 -0
  10. cccs_ssdeep-3.4.2/docs/source/_static/.gitkeep +0 -0
  11. cccs_ssdeep-3.4.2/docs/source/api.rst +33 -0
  12. cccs_ssdeep-3.4.2/docs/source/changelog.rst +1 -0
  13. cccs_ssdeep-3.4.2/docs/source/conf.py +357 -0
  14. cccs_ssdeep-3.4.2/docs/source/contributing.rst +1 -0
  15. cccs_ssdeep-3.4.2/docs/source/faq.rst +15 -0
  16. cccs_ssdeep-3.4.2/docs/source/index.rst +46 -0
  17. cccs_ssdeep-3.4.2/docs/source/installation.rst +340 -0
  18. cccs_ssdeep-3.4.2/docs/source/usage.rst +46 -0
  19. cccs_ssdeep-3.4.2/pyproject.toml +8 -0
  20. cccs_ssdeep-3.4.2/setup.cfg +7 -0
  21. cccs_ssdeep-3.4.2/setup.py +210 -0
  22. cccs_ssdeep-3.4.2/src/cccs_ssdeep.egg-info/PKG-INFO +151 -0
  23. cccs_ssdeep-3.4.2/src/cccs_ssdeep.egg-info/SOURCES.txt +72 -0
  24. cccs_ssdeep-3.4.2/src/cccs_ssdeep.egg-info/dependency_links.txt +1 -0
  25. cccs_ssdeep-3.4.2/src/cccs_ssdeep.egg-info/not-zip-safe +1 -0
  26. cccs_ssdeep-3.4.2/src/cccs_ssdeep.egg-info/requires.txt +7 -0
  27. cccs_ssdeep-3.4.2/src/cccs_ssdeep.egg-info/top_level.txt +1 -0
  28. cccs_ssdeep-3.4.2/src/ssdeep/__about__.py +22 -0
  29. cccs_ssdeep-3.4.2/src/ssdeep/__init__.py +303 -0
  30. cccs_ssdeep-3.4.2/src/ssdeep/_build.py +120 -0
  31. cccs_ssdeep-3.4.2/src/ssdeep-lib/.gitignore +47 -0
  32. cccs_ssdeep-3.4.2/src/ssdeep-lib/AUTHORS +1 -0
  33. cccs_ssdeep-3.4.2/src/ssdeep-lib/COPYING +340 -0
  34. cccs_ssdeep-3.4.2/src/ssdeep-lib/ChangeLog +336 -0
  35. cccs_ssdeep-3.4.2/src/ssdeep-lib/Doxyfile +2421 -0
  36. cccs_ssdeep-3.4.2/src/ssdeep-lib/FILEFORMAT +36 -0
  37. cccs_ssdeep-3.4.2/src/ssdeep-lib/INSTALL +368 -0
  38. cccs_ssdeep-3.4.2/src/ssdeep-lib/Makefile.am +74 -0
  39. cccs_ssdeep-3.4.2/src/ssdeep-lib/NEWS +259 -0
  40. cccs_ssdeep-3.4.2/src/ssdeep-lib/README +110 -0
  41. cccs_ssdeep-3.4.2/src/ssdeep-lib/TODO +14 -0
  42. cccs_ssdeep-3.4.2/src/ssdeep-lib/bootstrap +2 -0
  43. cccs_ssdeep-3.4.2/src/ssdeep-lib/configure.ac +89 -0
  44. cccs_ssdeep-3.4.2/src/ssdeep-lib/cycles.cpp +179 -0
  45. cccs_ssdeep-3.4.2/src/ssdeep-lib/dig.cpp +608 -0
  46. cccs_ssdeep-3.4.2/src/ssdeep-lib/edit_dist.c +103 -0
  47. cccs_ssdeep-3.4.2/src/ssdeep-lib/edit_dist.h +18 -0
  48. cccs_ssdeep-3.4.2/src/ssdeep-lib/engine.cpp +137 -0
  49. cccs_ssdeep-3.4.2/src/ssdeep-lib/filedata.cpp +178 -0
  50. cccs_ssdeep-3.4.2/src/ssdeep-lib/filedata.h +82 -0
  51. cccs_ssdeep-3.4.2/src/ssdeep-lib/find-file-size.c +222 -0
  52. cccs_ssdeep-3.4.2/src/ssdeep-lib/fuzzy.c +962 -0
  53. cccs_ssdeep-3.4.2/src/ssdeep-lib/fuzzy.h +227 -0
  54. cccs_ssdeep-3.4.2/src/ssdeep-lib/helpers.cpp +357 -0
  55. cccs_ssdeep-3.4.2/src/ssdeep-lib/m4/README +1 -0
  56. cccs_ssdeep-3.4.2/src/ssdeep-lib/main.cpp +340 -0
  57. cccs_ssdeep-3.4.2/src/ssdeep-lib/main.h +103 -0
  58. cccs_ssdeep-3.4.2/src/ssdeep-lib/match.cpp +416 -0
  59. cccs_ssdeep-3.4.2/src/ssdeep-lib/match.h +44 -0
  60. cccs_ssdeep-3.4.2/src/ssdeep-lib/normal.sh +6 -0
  61. cccs_ssdeep-3.4.2/src/ssdeep-lib/sample.c +141 -0
  62. cccs_ssdeep-3.4.2/src/ssdeep-lib/ssdeep.1 +162 -0
  63. cccs_ssdeep-3.4.2/src/ssdeep-lib/ssdeep.h +246 -0
  64. cccs_ssdeep-3.4.2/src/ssdeep-lib/sum_table.h +388 -0
  65. cccs_ssdeep-3.4.2/src/ssdeep-lib/tchar-local.h +72 -0
  66. cccs_ssdeep-3.4.2/src/ssdeep-lib/test-against-old.sh +16 -0
  67. cccs_ssdeep-3.4.2/src/ssdeep-lib/ui.cpp +135 -0
  68. cccs_ssdeep-3.4.2/src/ssdeep-lib/win.sh +5 -0
  69. cccs_ssdeep-3.4.2/src/ssdeep-lib/world.sh +6 -0
  70. cccs_ssdeep-3.4.2/tests/__init__.py +0 -0
  71. cccs_ssdeep-3.4.2/tests/files/file.txt +1 -0
  72. cccs_ssdeep-3.4.2/tests/test_lib.py +177 -0
  73. cccs_ssdeep-3.4.2/tox.ini +13 -0
@@ -0,0 +1,85 @@
1
+ Changelog
2
+ =========
3
+
4
+ 3.x (`master`_)
5
+ ~~~~~~~~~~~~~~~
6
+
7
+ .. note:: This version is not yet released and is under development.
8
+
9
+ 3.4.1 (2021-12-13)
10
+ ~~~~~~~~~~~~~~~~~~
11
+
12
+ * Add internal build improvements
13
+ * Update CI pipelines
14
+
15
+ 3.4 (2019-10-01)
16
+ ~~~~~~~~~~~~~~~~
17
+
18
+ * Update documentation
19
+ * Replace Jenkins and Travis CI with Drone CI
20
+ * Add new copy() function to Hash() and PseudoHash() class
21
+ * Add new attributes to Hash() and PseudoHash() class
22
+ * name
23
+ * block_size
24
+
25
+ 3.3 (2018-01-10)
26
+ ~~~~~~~~~~~~~~~~
27
+
28
+ * Update ssdeep lib to 2.14.1
29
+ * Fix issues with Travis CI
30
+ * Add additional CI test with Python 3.6
31
+ * Build docs during CI builds
32
+ * Remove deprecated PKGBUILD
33
+
34
+ 3.2 (2016-11-27)
35
+ ~~~~~~~~~~~~~~~~
36
+
37
+ * Update ssdeep lib to 2.13(thanks to Charles Lindsay)
38
+ * Update install instructions
39
+ * Add additional CI tests on CentOS 7, Debian 8 and Ubuntu 14.04/16.04
40
+
41
+ 3.1.1 (2014-12-20)
42
+ ~~~~~~~~~~~~~~~~~~
43
+
44
+ * Updated ssdeep lib to 2.12
45
+ * Added additional tests
46
+ * Fixed build issues on Windows(thanks to Paul Chaignon)
47
+ * Added option to run tests with PyPy3
48
+ * Fixed build to prevent automake version missmatch errors
49
+ * Updated documentation
50
+
51
+ 3.1 (2014-08-07)
52
+ ~~~~~~~~~~~~~~~~
53
+
54
+ * Fix build issue with ssdeep < 2.10
55
+
56
+ 3.0 (2014-06-25)
57
+ ~~~~~~~~~~~~~~~~
58
+
59
+ * Completely rewritten to use CFFI
60
+ * Interface in the spirit of hashlib
61
+ * Use pytest and tox for tests
62
+ * Use installed fuzzy lib by default
63
+
64
+ 2.9-0.3 (2013-03-12)
65
+ ~~~~~~~~~~~~~~~~~~~~
66
+
67
+ * Fix build issue with Python 2.6
68
+
69
+ 2.9-0.2 (2012-10-11)
70
+ ~~~~~~~~~~~~~~~~~~~~
71
+
72
+ * Fixing small bug in setup.py
73
+
74
+ 2.9-0.1 (2012-08-01)
75
+ ~~~~~~~~~~~~~~~~~~~~
76
+
77
+ * Updated ssdeep from 2.5 to 2.9
78
+ * Added Python 3.x support
79
+
80
+ 2.5 (2010-09-03)
81
+ ~~~~~~~~~~~~~~~~
82
+
83
+ * Initial release
84
+
85
+ .. _`master`: https://github.com/DinoTools/python-ssdeep
@@ -0,0 +1,95 @@
1
+ ..
2
+ This file is part of the python-ssdeep
3
+
4
+ SPDX-FileCopyrightText: 2017-2020 PhiBo (DinoTools)
5
+
6
+ SPDX-License-Identifier: LGPL-3.0-or-later
7
+
8
+ Contributing
9
+ ============
10
+
11
+ First of all, thank you for your interest in contributing to this project!
12
+
13
+
14
+ Filing bug reports
15
+ ------------------
16
+
17
+ Bug reports are very welcome.
18
+ Please file them on the `GitHub issue tracker`_.
19
+ Good bug reports come with extensive descriptions of the error and how to reproduce it.
20
+ Try to use the provided issue template, it should be displayed by the GitHub website when creating a new issue.
21
+
22
+
23
+ Patches
24
+ -------
25
+
26
+ All patches should be submitted in the form of pull requests to the main repository, `DinoTools/python-ssdeep`_.
27
+ These pull requests should satisfy the following properties:
28
+
29
+ Code
30
+ ^^^^
31
+
32
+ - A pull request should focus on **one** particular improvement or change.
33
+ - Create different pull requests for unrelated features or bugfixes.
34
+ - Python code should follow `PEP 8`_, especially in the "do what code around you does" sense.
35
+ - Add test if possible
36
+
37
+
38
+ Documentation
39
+ ^^^^^^^^^^^^^
40
+
41
+ When introducing new functionality, please remember to write documentation.
42
+
43
+ First time setup
44
+ ^^^^^^^^^^^^^^^^
45
+
46
+ - Download and install the `latest version of git`_
47
+ - Configure git with your username and email
48
+
49
+ .. code::
50
+
51
+ $ git config user.name 'Your Name'
52
+ $ git config user.email 'your.email@example.org'
53
+
54
+ - Make sure you have a `GitHub account`_
55
+ - Fork `DinoTools/python-ssdeep`_ to your GitHub account by using the Fork button
56
+ - Clone the main repository locally
57
+
58
+ .. code::
59
+
60
+ $ git clone https://github.com/DinoTools/python-ssdeep.git
61
+ $ cd python-ssdeep
62
+
63
+ - Add your fork as a remote to push your work to. Replace <username> with your username.
64
+
65
+ .. code::
66
+
67
+ $ git remote add fork https://github.com/<username>/python-ssdeep
68
+
69
+ - Install `pre-commit`_ by using a virtualenv.
70
+
71
+ .. code::
72
+
73
+ $ python3 -m venv venv_git
74
+ $ source venv_git/bin/activate
75
+ $ pip install pre-commit
76
+
77
+ - Install pre-commit hooks.
78
+
79
+ .. code::
80
+
81
+ $ pre-commit install
82
+
83
+ Review
84
+ ------
85
+
86
+ Finally, pull requests must be reviewed before merging.
87
+ Everyone can perform reviews; this is a very valuable way to contribute, and is highly encouraged.
88
+
89
+
90
+ .. _GitHub issue tracker: https://github.com/DinoTools/python-ssdeep/issues
91
+ .. _DinoTools/python-ssdeep: https://github.com/DinoTools/python-ssdeep
92
+ .. _PEP 8: https://www.python.org/dev/peps/pep-0008/
93
+ .. _latest version of git: https://git-scm.com/downloads
94
+ .. _GitHub account: https://github.com/join
95
+ .. _pre-commit: https://pre-commit.com/
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
@@ -0,0 +1,12 @@
1
+ include CHANGELOG.rst
2
+ include CONTRIBUTING.rst
3
+ include LICENSE
4
+ include README.rst
5
+ include tox.ini
6
+ graft docs
7
+ prune docs/build
8
+ graft src/ssdeep-lib
9
+ graft tests
10
+
11
+ global-exclude __pycache__
12
+ global-exclude *.py[co]
@@ -0,0 +1,151 @@
1
+ Metadata-Version: 2.4
2
+ Name: cccs-ssdeep
3
+ Version: 3.4.2
4
+ Summary: Python wrapper for the ssdeep library
5
+ Home-page: http://github.com/cccs-rs/python-ssdeep
6
+ Author: PhiBo (DinoTools)
7
+ License: LGPLv3+
8
+ Keywords: ssdeep
9
+ Classifier: Development Status :: 5 - Production/Stable
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Programming Language :: Python :: 3.6
15
+ Classifier: Programming Language :: Python :: 3.7
16
+ Classifier: Programming Language :: Python :: 3.8
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: Implementation :: CPython
20
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
21
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
+ License-File: LICENSE
23
+ Requires-Dist: cffi>=1.0.0
24
+ Provides-Extra: docstest
25
+ Requires-Dist: doc8; extra == "docstest"
26
+ Requires-Dist: readme_renderer>=16.0; extra == "docstest"
27
+ Requires-Dist: sphinx; extra == "docstest"
28
+ Requires-Dist: sphinx_rtd_theme; extra == "docstest"
29
+ Dynamic: author
30
+ Dynamic: classifier
31
+ Dynamic: description
32
+ Dynamic: home-page
33
+ Dynamic: keywords
34
+ Dynamic: license
35
+ Dynamic: license-file
36
+ Dynamic: provides-extra
37
+ Dynamic: requires-dist
38
+ Dynamic: summary
39
+
40
+ ssdeep Python Wrapper
41
+ =====================
42
+
43
+ This is a straightforward Python wrapper for `ssdeep by Jesse Kornblum`_, which is a library for computing context
44
+ triggered piecewise hashes (CTPH). Also called fuzzy hashes, CTPH can match inputs that have homologies. Such inputs
45
+ have sequences of identical bytes in the same order, although bytes in between these sequences may be different in both
46
+ content and length.
47
+
48
+ .. image:: https://img.shields.io/pypi/v/ssdeep.svg
49
+ :target: https://pypi.python.org/pypi/ssdeep/
50
+ :alt: Latest Version
51
+
52
+ .. image:: https://img.shields.io/pypi/l/ssdeep.svg
53
+ :target: https://pypi.python.org/pypi/ssdeep/
54
+ :alt: License
55
+
56
+ .. image:: https://img.shields.io/pypi/pyversions/ssdeep.svg
57
+ :target: https://pypi.python.org/pypi/ssdeep/
58
+ :alt: Python Versions
59
+
60
+ .. image:: https://readthedocs.org/projects/python-ssdeep/badge/
61
+ :target: https://python-ssdeep.readthedocs.io/en/latest/
62
+ :alt: Latest Docs
63
+
64
+ .. image:: https://github.com/dinotools/python-ssdeep/actions/workflows/codeql-analysis.yml/badge.svg?branch=master
65
+ :target: https://github.com/DinoTools/python-ssdeep/actions/workflows/codeql-analysis.yml
66
+ :alt: CodeQL tests
67
+
68
+ .. image:: https://github.com/dinotools/python-ssdeep/actions/workflows/python-linux.yml/badge.svg?branch=master
69
+ :target: https://github.com/DinoTools/python-ssdeep/actions/workflows/python-linux.yml
70
+ :alt: CI test status on Linux
71
+
72
+ .. image:: https://github.com/dinotools/python-ssdeep/actions/workflows/debian.yml/badge.svg?branch=master
73
+ :target: https://github.com/DinoTools/python-ssdeep/actions/workflows/debian.yml
74
+ :alt: CI test status on Debian
75
+
76
+ .. image:: https://github.com/dinotools/python-ssdeep/actions/workflows/ubuntu.yml/badge.svg?branch=master
77
+ :target: https://github.com/DinoTools/python-ssdeep/actions/workflows/ubuntu.yml
78
+ :alt: CI test status on Debian
79
+
80
+
81
+ How to use it
82
+ =============
83
+
84
+ To compute a fuzzy hash, use ``hash`` function:
85
+
86
+ .. code-block:: pycon
87
+
88
+ >>> import ssdeep
89
+ >>> hash1 = ssdeep.hash('Also called fuzzy hashes, Ctph can match inputs that have homologies.')
90
+ >>> hash1
91
+ '3:AXGBicFlgVNhBGcL6wCrFQEv:AXGHsNhxLsr2C'
92
+ >>> hash2 = ssdeep.hash('Also called fuzzy hashes, CTPH can match inputs that have homologies.')
93
+ >>> hash2
94
+ '3:AXGBicFlIHBGcL6wCrFQEv:AXGH6xLsr2C'
95
+
96
+ The ``compare`` function returns the match between 2 hashes, an integer value from 0 (no match) to 100.
97
+
98
+ .. code-block:: pycon
99
+
100
+ >>> ssdeep.compare(hash1, hash2)
101
+ 22
102
+
103
+
104
+ More examples are available in the `python-ssdeep documentation`_.
105
+
106
+ Install
107
+ =======
108
+
109
+ If all requirements are met it is possible to install the wrapper by using pip or easy_install.
110
+
111
+ .. code-block:: console
112
+
113
+ $ pip install ssdeep
114
+
115
+ The build will fail if the ssdeep library isn't installed.
116
+ To use the included version of the ssdeep library use the following command.
117
+
118
+ .. code-block:: console
119
+
120
+ $ BUILD_LIB=1 pip install ssdeep
121
+
122
+ For more information have a look at the `python-ssdeep documentation`_.
123
+
124
+ Tested on ...
125
+ =============
126
+
127
+ * CentOS 7
128
+ * Debian 8, 9
129
+ * Ubuntu 14.04, 16.04, 18.04
130
+
131
+ Documentation
132
+ =============
133
+
134
+ Feel free to use the prebuild `python-ssdeep documentation`_ or use the steps below to build the documentation.
135
+
136
+ .. code-block:: console
137
+
138
+ $ cd docs
139
+ $ pip install -r requirements.txt
140
+ $ make html
141
+
142
+ Licensing
143
+ =========
144
+
145
+ The code is licensed under the terms of the LGPLv3+.
146
+
147
+ This wrapper includes the unchanged source distribution of `ssdeep version 2.14.1`_. It is licensed under the GPLv2.
148
+
149
+ .. _ssdeep by Jesse Kornblum: https://ssdeep-project.github.io/ssdeep/
150
+ .. _ssdeep version 2.14.1: https://github.com/ssdeep-project/ssdeep/releases/tag/release-2.14.1
151
+ .. _python-ssdeep documentation: https://python-ssdeep.readthedocs.io
@@ -0,0 +1,112 @@
1
+ ssdeep Python Wrapper
2
+ =====================
3
+
4
+ This is a straightforward Python wrapper for `ssdeep by Jesse Kornblum`_, which is a library for computing context
5
+ triggered piecewise hashes (CTPH). Also called fuzzy hashes, CTPH can match inputs that have homologies. Such inputs
6
+ have sequences of identical bytes in the same order, although bytes in between these sequences may be different in both
7
+ content and length.
8
+
9
+ .. image:: https://img.shields.io/pypi/v/ssdeep.svg
10
+ :target: https://pypi.python.org/pypi/ssdeep/
11
+ :alt: Latest Version
12
+
13
+ .. image:: https://img.shields.io/pypi/l/ssdeep.svg
14
+ :target: https://pypi.python.org/pypi/ssdeep/
15
+ :alt: License
16
+
17
+ .. image:: https://img.shields.io/pypi/pyversions/ssdeep.svg
18
+ :target: https://pypi.python.org/pypi/ssdeep/
19
+ :alt: Python Versions
20
+
21
+ .. image:: https://readthedocs.org/projects/python-ssdeep/badge/
22
+ :target: https://python-ssdeep.readthedocs.io/en/latest/
23
+ :alt: Latest Docs
24
+
25
+ .. image:: https://github.com/dinotools/python-ssdeep/actions/workflows/codeql-analysis.yml/badge.svg?branch=master
26
+ :target: https://github.com/DinoTools/python-ssdeep/actions/workflows/codeql-analysis.yml
27
+ :alt: CodeQL tests
28
+
29
+ .. image:: https://github.com/dinotools/python-ssdeep/actions/workflows/python-linux.yml/badge.svg?branch=master
30
+ :target: https://github.com/DinoTools/python-ssdeep/actions/workflows/python-linux.yml
31
+ :alt: CI test status on Linux
32
+
33
+ .. image:: https://github.com/dinotools/python-ssdeep/actions/workflows/debian.yml/badge.svg?branch=master
34
+ :target: https://github.com/DinoTools/python-ssdeep/actions/workflows/debian.yml
35
+ :alt: CI test status on Debian
36
+
37
+ .. image:: https://github.com/dinotools/python-ssdeep/actions/workflows/ubuntu.yml/badge.svg?branch=master
38
+ :target: https://github.com/DinoTools/python-ssdeep/actions/workflows/ubuntu.yml
39
+ :alt: CI test status on Debian
40
+
41
+
42
+ How to use it
43
+ =============
44
+
45
+ To compute a fuzzy hash, use ``hash`` function:
46
+
47
+ .. code-block:: pycon
48
+
49
+ >>> import ssdeep
50
+ >>> hash1 = ssdeep.hash('Also called fuzzy hashes, Ctph can match inputs that have homologies.')
51
+ >>> hash1
52
+ '3:AXGBicFlgVNhBGcL6wCrFQEv:AXGHsNhxLsr2C'
53
+ >>> hash2 = ssdeep.hash('Also called fuzzy hashes, CTPH can match inputs that have homologies.')
54
+ >>> hash2
55
+ '3:AXGBicFlIHBGcL6wCrFQEv:AXGH6xLsr2C'
56
+
57
+ The ``compare`` function returns the match between 2 hashes, an integer value from 0 (no match) to 100.
58
+
59
+ .. code-block:: pycon
60
+
61
+ >>> ssdeep.compare(hash1, hash2)
62
+ 22
63
+
64
+
65
+ More examples are available in the `python-ssdeep documentation`_.
66
+
67
+ Install
68
+ =======
69
+
70
+ If all requirements are met it is possible to install the wrapper by using pip or easy_install.
71
+
72
+ .. code-block:: console
73
+
74
+ $ pip install ssdeep
75
+
76
+ The build will fail if the ssdeep library isn't installed.
77
+ To use the included version of the ssdeep library use the following command.
78
+
79
+ .. code-block:: console
80
+
81
+ $ BUILD_LIB=1 pip install ssdeep
82
+
83
+ For more information have a look at the `python-ssdeep documentation`_.
84
+
85
+ Tested on ...
86
+ =============
87
+
88
+ * CentOS 7
89
+ * Debian 8, 9
90
+ * Ubuntu 14.04, 16.04, 18.04
91
+
92
+ Documentation
93
+ =============
94
+
95
+ Feel free to use the prebuild `python-ssdeep documentation`_ or use the steps below to build the documentation.
96
+
97
+ .. code-block:: console
98
+
99
+ $ cd docs
100
+ $ pip install -r requirements.txt
101
+ $ make html
102
+
103
+ Licensing
104
+ =========
105
+
106
+ The code is licensed under the terms of the LGPLv3+.
107
+
108
+ This wrapper includes the unchanged source distribution of `ssdeep version 2.14.1`_. It is licensed under the GPLv2.
109
+
110
+ .. _ssdeep by Jesse Kornblum: https://ssdeep-project.github.io/ssdeep/
111
+ .. _ssdeep version 2.14.1: https://github.com/ssdeep-project/ssdeep/releases/tag/release-2.14.1
112
+ .. _python-ssdeep documentation: https://python-ssdeep.readthedocs.io