Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Enable encryption #36

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft

Enable encryption #36

wants to merge 10 commits into from

Conversation

AllanOricil
Copy link
Owner

@AllanOricil AllanOricil commented Jan 6, 2025

During boot, if there is no encryption key stored in SPIFFS, users are prompted to provide a password to create a new encryption key. If a salt is available in config.yml it will be used to generate the key, otherwise a new one will be created.

For more details, see Key derivation function.

After submiting the password form, the encryption key is created and stored in SPIFFS, and the salt is written as a Base32 encoded string to config.yml, which is stored in the SD card.

20250112_224907.jpg

@AllanOricil AllanOricil changed the title Add encryption Enable encryption Jan 6, 2025
AllanOricil and others added 10 commits January 19, 2025 13:54
during first boot, if there is no salt or key
in the board, the key derivation creation flow
will start. During this flow, the User has to
enter a password with length between 8 and 12 characters,
which is then used to generate a key.
This key is stored in SPIFFS, and it is  used
to encrypt and decrypt services secrets during boot.
im using the pointer of the screen to
determine which one is currently being
rendered, instead of assigning names
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant