chariotsolutions / phonegap-nfc

PhoneGap NFC Plugin
MIT License
712 stars 570 forks source link

Add pin protection to Tag #138

Closed maran001 closed 10 years ago

maran001 commented 10 years ago

I am working on a project where i have to write the data to the tag and then if someone tries to read the tag, user has to provide the pin. Reading and writing the tag is not an issue, issue is if someone want to read the tag after first time write, pin should be required. Do you have any suggestions how i can achieve this.

JohnMcLear commented 10 years ago

Use encryption to encrypt the string

----- Reply message ----- From: "maran001" notifications@github.com To: "chariotsolutions/phonegap-nfc" phonegap-nfc@noreply.github.com Subject: [phonegap-nfc] Add pin protection to Tag (#138) Date: Wed, Aug 13, 2014 14:00

I am working on a project where i have to write the data to the tag and then if someone tries to read the tag, user has to provide the pin. Reading and writing the tag is not an issue, issue is if someone want to read the tag after first time write, pin should be required. Do you have any suggestions how i can achieve this.

— Reply to this email directly or view it on GitHubhttps://github.com/chariotsolutions/phonegap-nfc/issues/138.

maran001 commented 10 years ago

Thanks John,

I am using Google Crypto js for AES 128 encryption and decryption but it is inflating the payload. 

Any suggestions.

Sent from my Verizon Wireless 4G LTE smartphone

-------- Original message -------- From: John McLear notifications@github.com Date:08/13/2014 9:54 AM (GMT-05:00) To: chariotsolutions/phonegap-nfc phonegap-nfc@noreply.github.com Cc: maran001 maran001.nilay@comcast.net Subject: Re: [phonegap-nfc] Add pin protection to Tag (#138)

Use encryption to encrypt the string

----- Reply message ----- From: "maran001" notifications@github.com To: "chariotsolutions/phonegap-nfc" phonegap-nfc@noreply.github.com Subject: [phonegap-nfc] Add pin protection to Tag (#138) Date: Wed, Aug 13, 2014 14:00

I am working on a project where i have to write the data to the tag and then if someone tries to read the tag, user has to provide the pin. Reading and writing the tag is not an issue, issue is if someone want to read the tag after first time write, pin should be required. Do you have any suggestions how i can achieve this.

— Reply to this email directly or view it on GitHubhttps://github.com/chariotsolutions/phonegap-nfc/issues/138. — Reply to this email directly or view it on GitHub.

JohnMcLear commented 10 years ago

Compress after encryption

----- Reply message ----- From: "maran001" notifications@github.com To: "chariotsolutions/phonegap-nfc" phonegap-nfc@noreply.github.com Cc: "John McLear" John@mclear.co Subject: [phonegap-nfc] Add pin protection to Tag (#138) Date: Wed, Aug 13, 2014 15:12

Thanks John,

I am using Google Crypto js for AES 128 encryption and decryption but it is inflating the payload.

Any suggestions.

Sent from my Verizon Wireless 4G LTE smartphone

-------- Original message -------- From: John McLear notifications@github.com Date:08/13/2014 9:54 AM (GMT-05:00) To: chariotsolutions/phonegap-nfc phonegap-nfc@noreply.github.com Cc: maran001 maran001.nilay@comcast.net Subject: Re: [phonegap-nfc] Add pin protection to Tag (#138)

Use encryption to encrypt the string

----- Reply message ----- From: "maran001" notifications@github.com To: "chariotsolutions/phonegap-nfc" phonegap-nfc@noreply.github.com Subject: [phonegap-nfc] Add pin protection to Tag (#138) Date: Wed, Aug 13, 2014 14:00

I am working on a project where i have to write the data to the tag and then if someone tries to read the tag, user has to provide the pin. Reading and writing the tag is not an issue, issue is if someone want to read the tag after first time write, pin should be required. Do you have any suggestions how i can achieve this.

— Reply to this email directly or view it on GitHubhttps://github.com/chariotsolutions/phonegap-nfc/issues/138. — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/chariotsolutions/phonegap-nfc/issues/138#issuecomment-52052960.

maran001 commented 10 years ago

Hi John,

Do you have any plug in code available that uses Google crypto and compression/ decompression logic.

Thanks, 

Sent from my Verizon Wireless 4G LTE smartphone

-------- Original message -------- From: John McLear notifications@github.com Date:08/13/2014 10:19 AM (GMT-05:00) To: chariotsolutions/phonegap-nfc phonegap-nfc@noreply.github.com Cc: maran001 maran001.nilay@comcast.net Subject: Re: [phonegap-nfc] Add pin protection to Tag (#138)

Compress after encryption

----- Reply message ----- From: "maran001" notifications@github.com To: "chariotsolutions/phonegap-nfc" phonegap-nfc@noreply.github.com Cc: "John McLear" John@mclear.co Subject: [phonegap-nfc] Add pin protection to Tag (#138) Date: Wed, Aug 13, 2014 15:12

Thanks John,

I am using Google Crypto js for AES 128 encryption and decryption but it is inflating the payload.

Any suggestions.

Sent from my Verizon Wireless 4G LTE smartphone

-------- Original message -------- From: John McLear notifications@github.com Date:08/13/2014 9:54 AM (GMT-05:00) To: chariotsolutions/phonegap-nfc phonegap-nfc@noreply.github.com Cc: maran001 maran001.nilay@comcast.net Subject: Re: [phonegap-nfc] Add pin protection to Tag (#138)

Use encryption to encrypt the string

----- Reply message ----- From: "maran001" notifications@github.com To: "chariotsolutions/phonegap-nfc" phonegap-nfc@noreply.github.com Subject: [phonegap-nfc] Add pin protection to Tag (#138) Date: Wed, Aug 13, 2014 14:00

I am working on a project where i have to write the data to the tag and then if someone tries to read the tag, user has to provide the pin. Reading and writing the tag is not an issue, issue is if someone want to read the tag after first time write, pin should be required. Do you have any suggestions how i can achieve this.

— Reply to this email directly or view it on GitHubhttps://github.com/chariotsolutions/phonegap-nfc/issues/138. — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/chariotsolutions/phonegap-nfc/issues/138#issuecomment-52052960. — Reply to this email directly or view it on GitHub.

maran001 commented 10 years ago

Hi John,

Thanks for help, that works.

One more question, do you have bluetooth plugin for iOS as i tried the Bluetooth Serial but it is able to detect the nearby BT devices.

Thanks,

----- Original Message -----

From: "John McLear" notifications@github.com To: "chariotsolutions/phonegap-nfc" phonegap-nfc@noreply.github.com Cc: "maran001" maran001.nilay@comcast.net Sent: Wednesday, August 13, 2014 10:19:07 AM Subject: Re: [phonegap-nfc] Add pin protection to Tag (#138)

Compress after encryption

----- Reply message ----- From: "maran001" notifications@github.com To: "chariotsolutions/phonegap-nfc" phonegap-nfc@noreply.github.com Cc: "John McLear" John@mclear.co Subject: [phonegap-nfc] Add pin protection to Tag (#138) Date: Wed, Aug 13, 2014 15:12

Thanks John,

I am using Google Crypto js for AES 128 encryption and decryption but it is inflating the payload.

Any suggestions.

Sent from my Verizon Wireless 4G LTE smartphone

-------- Original message -------- From: John McLear notifications@github.com Date:08/13/2014 9:54 AM (GMT-05:00) To: chariotsolutions/phonegap-nfc phonegap-nfc@noreply.github.com Cc: maran001 maran001.nilay@comcast.net Subject: Re: [phonegap-nfc] Add pin protection to Tag (#138)

Use encryption to encrypt the string

----- Reply message ----- From: "maran001" notifications@github.com To: "chariotsolutions/phonegap-nfc" phonegap-nfc@noreply.github.com Subject: [phonegap-nfc] Add pin protection to Tag (#138) Date: Wed, Aug 13, 2014 14:00

I am working on a project where i have to write the data to the tag and then if someone tries to read the tag, user has to provide the pin. Reading and writing the tag is not an issue, issue is if someone want to read the tag after first time write, pin should be required. Do you have any suggestions how i can achieve this.

— Reply to this email directly or view it on GitHubhttps://github.com/chariotsolutions/phonegap-nfc/issues/138. — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/chariotsolutions/phonegap-nfc/issues/138#issuecomment-52052960.

— Reply to this email directly or view it on GitHub .

JohnMcLear commented 10 years ago

See the BluetoothLe phonegap plugin

----- Reply message ----- From: "maran001" notifications@github.com To: "chariotsolutions/phonegap-nfc" phonegap-nfc@noreply.github.com Cc: "John McLear" John@mclear.co Subject: [phonegap-nfc] Add pin protection to Tag (#138) Date: Wed, Aug 13, 2014 17:20

Hi John,

Thanks for help, that works.

One more question, do you have bluetooth plugin for iOS as i tried the Bluetooth Serial but it is able to detect the nearby BT devices.

Thanks,

----- Original Message -----

From: "John McLear" notifications@github.com To: "chariotsolutions/phonegap-nfc" phonegap-nfc@noreply.github.com Cc: "maran001" maran001.nilay@comcast.net Sent: Wednesday, August 13, 2014 10:19:07 AM Subject: Re: [phonegap-nfc] Add pin protection to Tag (#138)

Compress after encryption

----- Reply message ----- From: "maran001" notifications@github.com To: "chariotsolutions/phonegap-nfc" phonegap-nfc@noreply.github.com Cc: "John McLear" John@mclear.co Subject: [phonegap-nfc] Add pin protection to Tag (#138) Date: Wed, Aug 13, 2014 15:12

Thanks John,

I am using Google Crypto js for AES 128 encryption and decryption but it is inflating the payload.

Any suggestions.

Sent from my Verizon Wireless 4G LTE smartphone

-------- Original message -------- From: John McLear notifications@github.com Date:08/13/2014 9:54 AM (GMT-05:00) To: chariotsolutions/phonegap-nfc phonegap-nfc@noreply.github.com Cc: maran001 maran001.nilay@comcast.net Subject: Re: [phonegap-nfc] Add pin protection to Tag (#138)

Use encryption to encrypt the string

----- Reply message ----- From: "maran001" notifications@github.com To: "chariotsolutions/phonegap-nfc" phonegap-nfc@noreply.github.com Subject: [phonegap-nfc] Add pin protection to Tag (#138) Date: Wed, Aug 13, 2014 14:00

I am working on a project where i have to write the data to the tag and then if someone tries to read the tag, user has to provide the pin. Reading and writing the tag is not an issue, issue is if someone want to read the tag after first time write, pin should be required. Do you have any suggestions how i can achieve this.

— Reply to this email directly or view it on GitHubhttps://github.com/chariotsolutions/phonegap-nfc/issues/138. — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/chariotsolutions/phonegap-nfc/issues/138#issuecomment-52052960.

— Reply to this email directly or view it on GitHub .

— Reply to this email directly or view it on GitHubhttps://github.com/chariotsolutions/phonegap-nfc/issues/138#issuecomment-52065820.

don commented 10 years ago

Also see #137 for some of the stuff that @joepegler is trying with encryption.

don commented 10 years ago

Closing issue - this should be handled in your application rather than by the plugin