Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DRAFT] Validate pattern/palette index with hash #234

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

Conversation

henrygab
Copy link
Collaborator

@henrygab henrygab commented Dec 15, 2021

fixes #230 ... at least in part ... by ensuring that a hash of the name for the palette and pattern match the value stored in EEPROM.

Used MurMurHash3 for speed and applicability to hashing strings in non-security context.

Uses MurMurHash3, a non-cryptographic hash that appears
to decently hash short text
@henrygab
Copy link
Collaborator Author

@jasoncoon -- Just wanted to see if there's interest in either of the two parts of this:

  1. using hash to validate name + index match
  2. default patterns being listed by name (rather than index)

I've not yet figured a way to reliably debug on ESP8266, which is the only known issue holding this up. Testing is non-trivial.

@jasoncoon
Copy link
Owner

I wasn't overly concerned about either of these problems, but I have no problem with fixing them or this solution. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for stable effects / palettes configuration
2 participants