Tips and Tricks
This section introduces some tips and best practices for using CrackNuts, helping you get the most out of CrackNuts.
đī¸ PIP Mirror Configuration
After setting up the Python environment, since downloading packages from the pypi repository can be slow over domestic networks, it is recommended to configure pip mirrors. This can speed up downloads and avoid dependency installation failures. You can choose to configure one of the following two mirrors.
đī¸ Python Virtual Environment
In general, when developing with Python, it is usually recommended to use a virtual environment such as conda, venv, or virtualenv to avoid breaking the existing Python development environment caused by different projects introducing different versions of the same libraries. Below are examples of configuration methods for conda and venv. You can choose either one to use, but Conda virtual environment is recommended as it better supports compatibility with data analysis and other open-source libraries.
đī¸ Nut_stm32f103c8 Side-Channel Analysis
STM32F103C8 is a microcontroller chip based on the ARM Cortex-M3 core, launched by STMicroelectronics. Due to its high performance, low power consumption, and rich peripheral resources, this chip is widely used in embedded systems.
đī¸ Nut Development Getting Started - Basics
Step 1. Environment Preparation
đī¸ SCARR Installation
SCARR is the default framework used by CrackNuts for data analysis, and it also serves as the default format for trace acquisition (based on a specific directory structure using Zarr). It is recommended to install SCARR when performing data analysis.
đī¸ Jupyter Code Autocompletion
By default, after installing Jupyter, code suggestions and autocompletion are not available. You can enable this feature in the Jupyter environment by installing the following plugins: