Git Product home page Git Product logo

Comments (6)

justinsalamon avatar justinsalamon commented on September 22, 2024

If the string is random though we won't be able to track the same device between different sessions. Should we not use a one-directional hash (or something of sorts) instead?

from cusp_sonyc_wifi.

hagansna avatar hagansna commented on September 22, 2024

Hmm the idea we came up with was to safe the random string to the user's phone in a text file and then just pull that whenever we would have used the mac address of the phone instead. That way we do not need to ever even deal with the phone's mac address and we'll still have a way to uniquely identify the phone (unless the user deletes the file).

from cusp_sonyc_wifi.

justinsalamon avatar justinsalamon commented on September 22, 2024

What if the user does delete the file? More to the point, what if the user deletes and re-installs the app (something that is likely to happen as we iron-out bugs and add features)?

I'm not an expert, but creating a one-way hash in python should be fairly straight forward no?
https://exyr.org/2011/hashing-passwords/
http://www.pythoncentral.io/hashing-strings-with-python/

from cusp_sonyc_wifi.

hagansna avatar hagansna commented on September 22, 2024

Right, if the user were to delete that text file a new string would have to be generated. Deleting the app would have no affect on the process going about it the way I had in mind though. In any case, I see your point and it looks like using a Hash is a better idea. I wouldn't want to do it in Python though. I would do it in the Java so we are never sending up the Mac address of the phone at all.

from cusp_sonyc_wifi.

justinsalamon avatar justinsalamon commented on September 22, 2024

yes sorry, i was thinking of a different project when I mentioned python. It should be done natively in the app of course (so yes, Java). I guess Oz is making me think upside down :P

from cusp_sonyc_wifi.

cmydlarz avatar cmydlarz commented on September 22, 2024

One way hash used as a replacement for mac address. Nice 1!

from cusp_sonyc_wifi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.