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

hash & salt MACs before store them in RAM #2

Closed
cyberman54 opened this issue Mar 20, 2018 · 3 comments
Closed

hash & salt MACs before store them in RAM #2

cyberman54 opened this issue Mar 20, 2018 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@cyberman54
Copy link
Owner

  • scramble MACs before storing them in RAM, to improve privacy
  • add hash & salt function for this purpose
@cyberman54 cyberman54 added enhancement New feature or request help wanted Extra attention is needed labels Mar 20, 2018
@cyberman54 cyberman54 added this to the 1.1.21 milestone Mar 20, 2018
@cyberman54
Copy link
Owner Author

cyberman54 commented Mar 22, 2018

Solution idea:

First, the captured MAC address (previously possibly vendor-filtered) is truncated, then a SALT value is appended, a hash function is applied to it, and the result is truncated to make it look like a regular MAC address. The result is an identifier. Temporarily in RAM only the identifiers are kept. These alone form the counting basis.

The SALT value is regenerated at device reset or at certain (minimum) intervals. Thus, the identifiers after device reset or expiration of the interval are different from those previously detected. A recognition of devices / persons is thus without further fingerprinting (which is not part of the code) not possible, even if the identifier data was stored somewhere for a long period of time.

The SALT value must be a random number that is not persistent and is stored only in volatile RAM.

Using a separately running RTos task "scrambling_task", which is working continously on the MACs set:

forever do {

  • read next input MAC from set
  • salt+hash MAC
  • store back to set, replacing original MAC
    }

This way the MAC set contains only identifiers, which are counted.

@trlafleur
Copy link

This might be of help...

forum.arduino.cc/index.php?topic=394998.0

@cyberman54 cyberman54 removed this from the 1.3.0 milestone Mar 31, 2018
@cyberman54
Copy link
Owner Author

implemented (v1.2.6).

cyberman54 pushed a commit that referenced this issue Feb 22, 2019
cyberman54 pushed a commit that referenced this issue Feb 3, 2020
cyberman54 pushed a commit that referenced this issue Jan 21, 2021
cyberman54 pushed a commit that referenced this issue Nov 1, 2022
cyberman54 added a commit that referenced this issue May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants