Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have my PC extension for google chrome, the extension is something like Sync ( Bookmarks, tabs etc). In order to associate each Bookmark and tab with the PC/Desktop/Machine on which it got created/modified. For which i may have to generate my own unique id along with ( for ex:- SerialNo_myown_unique, CPU_No_Myown_unique, MAC_addr_Myownuniqueno etc). So all i want to know is, how do i generate this using Javascript, as most of the blogs and articles i explored have not given clear instructions about how to do it?
Can someone help?
node-uuid will generate RFC compilant UUID strings for you. While these won't depend on the machine they are generated on I don't see why that should be necessary. You can generate a machine uuid once when your extension is installed and associate that with a user account on your service.
Alternatively you could just handle this on your server and request an id from the server after the user logs into his or her account after the extension has been installed.
In general, what you are looking for is called device fingerprinting and is a rather large issue for privacy. That is also why it's (thankfully) rather hard and imprecise to do. The Mozilla Wiki has an interesting collection on some techniques. You can test how unique your browser configuration is on Panopticlick.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
What link should be used and how to determine the right one for every OS?
iOS
Android
Windows
macOS
Linux
Is this universal for all operating systems?
<!-- Deep link URL for existing users with app already installed on their device -->
window.location = 'yourapp://app.com/?screen=xxxxx';
this is named Uniform Resource Identifier (aka URI).
The beginning of your URL "yourapp" would be a scheme. There are some schemes which are much used, for example ftp:, file:, mailto:, tel:, git:.
There are a lot of it but the support is very limited and as you said, depends on the browser and what software the client has installed on it. So, the scheme has nothing to do with the OS when you use a predefined scheme. If you want to have your own application you need to tell the OS "Uhm, hi there, could you please listen to that scheme" (As example in Windows with the Registry). And you can't do that from the browser because that would open a lot of possible attacks from the browser to your OS.
So to answer your questions: The right one for every OS? Is this universal? Yes, You need only one scheme, as it does not depend on the OS.
Think about it: What do you want to archive? A mailto:? Just do it. A ftp:? Well, your client has to have a FTP-Client with URI-Support. A custom app, like myapp:? That's a lot of work and I wish you good luck with that as it is a custom program for every OS.
If interested, see this link for a list of all schemes.
I hope, I could help you. Have a nice day :)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to check if a user has already been into my site and downloaded the custom certificate (self-signed). I understand that javascript can't do that, but was thinking maybe a way it can check for Chrome? Since Chrome maintains a keystore?
I guess, the only way I was able to figure it out so far is by checking that the URL has https and then subsequently checking the content of the page (e.g. if certificate is untrusted the content would mention something ...) for the absence of errors related to certificate or t=for the existence of the normal content I would expect to be there... Doing that I was abel to overcome this and prompt users to download a package with the custom certificate and instructions etc... Please suggest if anyone has come across a better option.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am new to chrome extension and i need to develop a chrome extension which can handle text/json files (should be able to perform read-write operations).Files will be stored at the same machine(path may be D:/abc/xyz.text) where i will install chrome extension.Does any one have any idea?
That would sadly be not easy or downright impossible - a Chrome Extension cannot get read/write permissions for the real filesystem.
A Chrome App on the other hand can, using chrome.fileSystem API.
Your options:
Make a Chrome App instead. Might not be possible if you need browser integration.
Make an extension and a Chrome App that talk to each other, letting the Chrome App handle the file operations. Complicated install, but maximum flexibility.
Make an extension that uses a Native Host module to do operations with the filesystem. It will be even more complicated install, but UNLIMITED POWER.
Make an extension that works with its own virtual filesystem; if the user needs a file, you can use chrome.downloads API to export it.
Make an extension that works with some sort of cloud storage solution, e.g. with files in Dropbox.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
How to connect my fingerprint device to my Login and Register script.
my device is Digital Persona 4000b and im using PHP and MSQL in my code
I already tried searching in google but still can't find the solutions
If you want your users to use a Digital Persona to login to a web-page using their browser, they are going to need to install a browser plugin (since neither java or javascript alone wouldn't give access in that way to the usb-ports, see How to get USB devices List from Browser).
If there is such a browser-plugin, you'd need to check it's api to see how it communicates with javascript. From there on communication to the server-side results the familiar communication options (forms, ajax, etc).
You also might attempt to create a plugin yourself, have a look at One Touch for Windows SDK Java Developer Guide for example.
You can also contact the manufacturer, since you paid for the device and are going to support it in your application.
Hope this helps!
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I have a requirement wherein I need to launch an application (assumed to be installed on the user's machine) from a webpage.
I found that there are several ways of doing so, but I would like to know if this is an acceptable solution. Is it OK to execute applications from a webpage or is this some kind of an anti-pattern?
EDIT: To clarify, I did not mean that the executable will launch on loading the webpage, rather as Florian mentions, it will be on a user click, so the user knows that an executable will be launched. My question was is even this ok?
If you can do this, it is most likely a security flaw. Can you imagine if I run all your applications just because you visited my webpage?
However, you can do something like skype does: adding a protocol that your desktop application handles. This means that when the user will click on the link, it will launch the desktop application handling the protocol.
Skype's links are like this:
Skype me!
And the skype program is the default handler of the skype protocol for your operating system, so it will run it.