Skip to content

Generate QR code for user check-in. #3

Open

Description

@andres-valdes

It would be really useful for potential projects and extensions to the smoothie suite if we could generate a QR code for the user (after they've confirmed their attendance).

Perhaps within the QR code we could encrypt something like:

{
    "id": 42
}

This would indicate their id within the database, this would be useful to mark them as "checked in" on the day of the event.

Perhaps we should blast this QR code with a secret, so user's can't falsify their own QR codes, and can only receive one from us. This could also serve as our tracker for meals, but that sounds like something outside of the scope of mango/peaches.

Perhaps someone should draft a proposal for a project of that nature?

Activity

  1. SCKelemen commented on Dec 16, 2018

    @SCKelemen

    You actually don't need to encrypt it. You could just hash the information, and encrypt the hash. This is how digital signatures work. If you want to have a stateless token, where access to a database is not desirable for whatever reason, you could actually use a pattern like JWTs for handling. JSON Web Tokens (JWT) define a standardized pattern for this kind of thing, and you could encode the entire JWT into the QR code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions