This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
How is the data encrypted and/or uses OS's password management? #214
Open
Description
Keytar never asks for a computer password when you read/write. For example, I can do
keytar.setPassword('MyDefaultService', 'accountName', 'password');
and then later at any point anywhere on the OS have another .js file and do
keytar.findCredentials('MyDefaultService')
And this just gives me all the username/password, without ever prompting for the Vault's password. I am not running my script as sudo
.
I'm confused then whether data is actually encrypted or how it uses the OS's default password management vault. Because it looks like any script running on the same computer would have access to the entire vault assuming they have the service-name.