theblazecoders / smart-car-parking

Smartest Car Parking on the Planet 🌏
https://theblazecoders.github.io/smart-car-parking
12 stars 5 forks source link

Safely Handle QR code #2

Closed harshkhandeparkar closed 5 years ago

harshkhandeparkar commented 5 years ago

Qr codes are directly saved to the pc, no encryption, and they exist forever. Probably:

  1. They should be deleted once used.
  2. They store the full passkey, maybe they can be encrypted.
  3. Maybe only authorised users should be allowed to download the QR codes.
sahil-patel6 commented 5 years ago

Let me see after practicals

On Tue, 2 Apr, 2019, 20:44 Harsh Khandeparkar, notifications@github.com wrote:

Qr codes are directly saved to the pc, no encryption, and they exist forever. Probably:

  1. They should be deleted once used.
  2. They store the full passkey, maybe they can be encrypted.
  3. Maybe only authorised users should be allowed to download the QR codes.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/HarshKhandeparkar/smart-car-parking/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AROeQWd4BMEhai5TfTwRb_-k__jZq1MWks5vc3PWgaJpZM4cYTjw .

sahil-patel6 commented 5 years ago

if you want to make it to authorised users only then we have to make a login system

harshkhandeparkar commented 5 years ago

I want the qr code to be sent to the mobile app, encrypted and once sent, deleted from the server. The user can then scan the code at the kiosk or whatever from the app itself. Let's try to do something similar.

sahil-patel6 commented 5 years ago

Should I save the QR code in the phone then??

On Wed, 3 Apr, 2019, 17:01 Harsh Khandeparkar, notifications@github.com wrote:

I want the qr code to be sent to the mobile app, encrypted and once sent, deleted from the server. The user can then scan the code at the kiosk or whatever from the app itself. Let's try to do something similar.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HarshKhandeparkar/smart-car-parking/issues/2#issuecomment-479450481, or mute the thread https://github.com/notifications/unsubscribe-auth/AROeQeEElafmkhbEQc_hClAxfJDya1Ldks5vdJEYgaJpZM4cYTjw .

harshkhandeparkar commented 5 years ago

Yes but make sure that only the app can access it directly. The user should not beable to access it directly or share it or anything.

sahil-patel6 commented 5 years ago

As the deadline is on November we have so much time

On Wed, 3 Apr, 2019, 17:02 Sahil Patel, goal.sahil6@gmail.com wrote:

Should I save the QR code in the phone then??

On Wed, 3 Apr, 2019, 17:01 Harsh Khandeparkar, notifications@github.com wrote:

I want the qr code to be sent to the mobile app, encrypted and once sent, deleted from the server. The user can then scan the code at the kiosk or whatever from the app itself. Let's try to do something similar.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HarshKhandeparkar/smart-car-parking/issues/2#issuecomment-479450481, or mute the thread https://github.com/notifications/unsubscribe-auth/AROeQeEElafmkhbEQc_hClAxfJDya1Ldks5vdJEYgaJpZM4cYTjw .

harshkhandeparkar commented 5 years ago

Juet like some apps cache music. The user cannot access the songs directly. Only theapp can. Is that possible?

sahil-patel6 commented 5 years ago

I will have to encrypt then, I have to find a way to do so. Don't worry I will find it

On Wed, 3 Apr, 2019, 17:04 Harsh Khandeparkar, notifications@github.com wrote:

Yes but make sure that only the app can access it directly. The user should not beable to access it directly or share it or anything.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HarshKhandeparkar/smart-car-parking/issues/2#issuecomment-479451343, or mute the thread https://github.com/notifications/unsubscribe-auth/AROeQbD18LU3q2xXa2FQC7h7WdCOrakuks5vdJHLgaJpZM4cYTjw .

sahil-patel6 commented 5 years ago

Yeah I just remembered, yeah we can cache images but there will be one problem once the user uninstall the app it will be gone

On Wed, 3 Apr, 2019, 17:06 Harsh Khandeparkar, notifications@github.com wrote:

Juet like some apps cache music. The user cannot access the songs directly. Only theapp can. Is that possible?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HarshKhandeparkar/smart-car-parking/issues/2#issuecomment-479451785, or mute the thread https://github.com/notifications/unsubscribe-auth/AROeQfi8JsFwsqSYqPUDXoDfVG7c6KOaks5vdJIygaJpZM4cYTjw .

sahil-patel6 commented 5 years ago

Images*

On Wed, 3 Apr, 2019, 17:07 Sahil Patel, goal.sahil6@gmail.com wrote:

Yeah I just remembered, yeah we can cache images but there will be one problem once the user uninstall the app it will be gone

On Wed, 3 Apr, 2019, 17:06 Harsh Khandeparkar, notifications@github.com wrote:

Juet like some apps cache music. The user cannot access the songs directly. Only theapp can. Is that possible?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HarshKhandeparkar/smart-car-parking/issues/2#issuecomment-479451785, or mute the thread https://github.com/notifications/unsubscribe-auth/AROeQfi8JsFwsqSYqPUDXoDfVG7c6KOaks5vdJIygaJpZM4cYTjw .

harshkhandeparkar commented 5 years ago

That is not a problem. They are one time use qr codes. Also users are provided passwords as well. In the future we can store the imgs on the server as well, encrypted.

harshkhandeparkar commented 5 years ago

Btw, can the imgs be cached using react native? Or java?

sahil-patel6 commented 5 years ago

As far as I know I am familiar with Java and not much with react native. As we want only Android app, image caching can be achieved in native development that is with Java

On Wed, 3 Apr, 2019, 17:11 Harsh Khandeparkar, notifications@github.com wrote:

Btw, can the imgs be cached using react native? Or java?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HarshKhandeparkar/smart-car-parking/issues/2#issuecomment-479453398, or mute the thread https://github.com/notifications/unsubscribe-auth/AROeQUV5xzadNqvxuwqIO5xrE3NWb39iks5vdJNzgaJpZM4cYTjw .