Name | scared JSON |
Version |
1.1.4
JSON |
| download |
home_page | https://gitlab.com/eshard/scared |
Summary | scared is a side-channel analysis framework. |
upload_time | 2024-08-13 10:35:25 |
maintainer | None |
docs_url | None |
author | eshard |
requires_python | <3.13,>=3.7.0 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# SCAred
[![pipeline status](https://gitlab.com/eshard/scared/badges/master/pipeline.svg)](https://gitlab.com/eshard/scared/commits/master)
[![PyPI version](https://badge.fury.io/py/scared.svg)](https://pypi.org/project/scared/)
[![Conda installer](https://anaconda.org/eshard/scared/badges/installer/conda.svg)](https://anaconda.org/eshard/scared)
[![Latest Conda release](https://anaconda.org/eshard/scared/badges/latest_release_date.svg)](https://anaconda.org/eshard/scared)
scared is a side-channel analysis framework maintained by [eShard](http://www.eshard.com) team.
## Getting started
### Requirements
Scared need python **3.7**, **3.8**, **3.9** or **3.10**.
You can install `scared`, depending on your setup:
- from source
- with `pip`
- with `conda`
#### Install with `conda`
You just have to run:
```bash
conda install -c eshard scared
```
#### Install with `pip`
Python wheels are available from Pypi, just run:
```bash
pip install scared
```
#### Install from sources
To install from sources, you will need to run:
```bash
pip install .
```
from the source folder.
If you are planning to contribute, see [CONTRIBUTING.md](CONTRIBUTING.md) to install the library in development mode and run the test suite.
### Make a first cool thing
Start using scared by doing a cool thing:
```python
# First import the lib
import scared
import numpy as np
# Define a selection function
@scared.attack_selection_function
def first_add_key(plaintext, guesses):
res = np.empty((plaintext.shape[0], len(guesses), plaintext.shape[1]), dtype='uint8')
for i, guess in enumerate(guesses):
res[:, i, :] = np.bitwise_xor(plaintext, guess)
return res
# Create an analysis CPA
a = scared.CPAAttack(
selection_function=first_add_key,
model=scared.HammingWeight(),
discriminant=scared.maxabs)
# Load some traces, for example a dpa v2 subset
ths = scared.traces.read_ths_from_ets_file('dpa_v2.ets')
# Create a container for your ths
container = scared.Container(ths)
# Run!
a.run(container)
```
## Documentation
To go further and learn all about scared, please go to [the full documentation](https://eshard.gitlab.io/scared).
You can also have an interactive introduction to scared by launching these [notebooks with Binder](https://mybinder.org/v2/gl/eshard%2Fscared-notebooks/master).
## Contributing
All contributions, starting with feedbacks, are welcomed.
Please read [CONTRIBUTING.md](CONTRIBUTING.md) if you wish to contribute to the project.
## License
This library is licensed under LGPL V3 license. See the [LICENSE](LICENSE) file for details.
It is mainly intended for non-commercial use, by academics, students or professional willing to learn the basics of side-channel analysis.
If you wish to use this library in a commercial or industrial context, [eShard](https://www.eshard.com) provides commercial licenses under fees. [Contact us](mailto:scared@eshard.com)!
## Authors
See [AUTHORS](AUTHORS.md) for the list of contributors to the project.
## Binary builds available
Binary builds (wheels on pypi and conda builds) are available for the following platforms and Python version.
Platforms:
- Linux x86 64
- Macosx x86 64
Python version:
- 3.6
- 3.7
- 3.8
Raw data
{
"_id": null,
"home_page": "https://gitlab.com/eshard/scared",
"name": "scared",
"maintainer": null,
"docs_url": null,
"requires_python": "<3.13,>=3.7.0",
"maintainer_email": null,
"keywords": null,
"author": "eshard",
"author_email": "scared@eshard.com",
"download_url": "https://files.pythonhosted.org/packages/9d/a7/8c1bca310c9bb8ea6a5ccf5dd8993d2c05ac04b99c8f707cc6600f57e239/scared-1.1.4.tar.gz",
"platform": null,
"description": "# SCAred\n\n[![pipeline status](https://gitlab.com/eshard/scared/badges/master/pipeline.svg)](https://gitlab.com/eshard/scared/commits/master)\n[![PyPI version](https://badge.fury.io/py/scared.svg)](https://pypi.org/project/scared/)\n[![Conda installer](https://anaconda.org/eshard/scared/badges/installer/conda.svg)](https://anaconda.org/eshard/scared)\n[![Latest Conda release](https://anaconda.org/eshard/scared/badges/latest_release_date.svg)](https://anaconda.org/eshard/scared)\n\nscared is a side-channel analysis framework maintained by [eShard](http://www.eshard.com) team.\n\n## Getting started\n\n### Requirements\n\nScared need python **3.7**, **3.8**, **3.9** or **3.10**.\n\nYou can install `scared`, depending on your setup:\n\n- from source\n- with `pip`\n- with `conda`\n\n#### Install with `conda`\n\nYou just have to run:\n\n```bash\nconda install -c eshard scared\n```\n\n#### Install with `pip`\n\nPython wheels are available from Pypi, just run:\n\n```bash\npip install scared\n```\n\n#### Install from sources\n\nTo install from sources, you will need to run:\n\n```bash\npip install .\n```\n\nfrom the source folder.\n\nIf you are planning to contribute, see [CONTRIBUTING.md](CONTRIBUTING.md) to install the library in development mode and run the test suite.\n\n### Make a first cool thing\n\nStart using scared by doing a cool thing:\n\n```python\n# First import the lib\nimport scared\nimport numpy as np\n\n# Define a selection function\n@scared.attack_selection_function\ndef first_add_key(plaintext, guesses):\n res = np.empty((plaintext.shape[0], len(guesses), plaintext.shape[1]), dtype='uint8')\n for i, guess in enumerate(guesses):\n res[:, i, :] = np.bitwise_xor(plaintext, guess)\n return res\n\n# Create an analysis CPA\na = scared.CPAAttack(\n selection_function=first_add_key,\n model=scared.HammingWeight(),\n discriminant=scared.maxabs)\n\n# Load some traces, for example a dpa v2 subset\nths = scared.traces.read_ths_from_ets_file('dpa_v2.ets')\n\n# Create a container for your ths\ncontainer = scared.Container(ths)\n\n# Run!\na.run(container)\n```\n\n## Documentation\n\nTo go further and learn all about scared, please go to [the full documentation](https://eshard.gitlab.io/scared).\nYou can also have an interactive introduction to scared by launching these [notebooks with Binder](https://mybinder.org/v2/gl/eshard%2Fscared-notebooks/master).\n\n## Contributing\n\nAll contributions, starting with feedbacks, are welcomed.\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) if you wish to contribute to the project.\n\n## License\n\nThis library is licensed under LGPL V3 license. See the [LICENSE](LICENSE) file for details.\n\nIt is mainly intended for non-commercial use, by academics, students or professional willing to learn the basics of side-channel analysis.\n\nIf you wish to use this library in a commercial or industrial context, [eShard](https://www.eshard.com) provides commercial licenses under fees. [Contact us](mailto:scared@eshard.com)!\n\n## Authors\n\nSee [AUTHORS](AUTHORS.md) for the list of contributors to the project.\n\n## Binary builds available\n\nBinary builds (wheels on pypi and conda builds) are available for the following platforms and Python version.\n\nPlatforms:\n\n- Linux x86 64\n- Macosx x86 64\n\nPython version:\n\n- 3.6\n- 3.7\n- 3.8\n",
"bugtrack_url": null,
"license": null,
"summary": "scared is a side-channel analysis framework.",
"version": "1.1.4",
"project_urls": {
"Documentation": "https://eshard.gitlab.io/scared",
"Homepage": "https://gitlab.com/eshard/scared",
"Issues": "https://gitlab.com/eshard/scared/issues",
"eShard": "https://www.eshard.com"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b50a9c28e188e385ca965f0349cd9d3030d781d670d3bfd3e7f1b41be9d19d29",
"md5": "1eab2e3c2e0aa7acf64768eae114fdb8",
"sha256": "f0351649936a61ae55111fd507f957573a235288db6016676ccfa3bfd34eac23"
},
"downloads": -1,
"filename": "scared-1.1.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1eab2e3c2e0aa7acf64768eae114fdb8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.13,>=3.7.0",
"size": 113034,
"upload_time": "2024-08-13T10:35:27",
"upload_time_iso_8601": "2024-08-13T10:35:27.760709Z",
"url": "https://files.pythonhosted.org/packages/b5/0a/9c28e188e385ca965f0349cd9d3030d781d670d3bfd3e7f1b41be9d19d29/scared-1.1.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9da78c1bca310c9bb8ea6a5ccf5dd8993d2c05ac04b99c8f707cc6600f57e239",
"md5": "3eca9739eeb997db300c7b99a9c55ece",
"sha256": "632bcca03afc09bedcf02488e2b0ff91259609b77d339778632502d1c96fbdef"
},
"downloads": -1,
"filename": "scared-1.1.4.tar.gz",
"has_sig": false,
"md5_digest": "3eca9739eeb997db300c7b99a9c55ece",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.13,>=3.7.0",
"size": 130935,
"upload_time": "2024-08-13T10:35:25",
"upload_time_iso_8601": "2024-08-13T10:35:25.125411Z",
"url": "https://files.pythonhosted.org/packages/9d/a7/8c1bca310c9bb8ea6a5ccf5dd8993d2c05ac04b99c8f707cc6600f57e239/scared-1.1.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-13 10:35:25",
"github": false,
"gitlab": true,
"bitbucket": false,
"codeberg": false,
"gitlab_user": "eshard",
"gitlab_project": "scared",
"lcname": "scared"
}