Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to use keytar electron

const keytar = require('keytar');

keytar.setPassword('KeytarTest', 'AccountName', 'secret');

const secret = keytar.getPassword('KeytarTest', 'AccountName');
secret.then((result) => {
    console.log("result: "+ result); // result will be 'secret'
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #keytar #electron
ADD COMMENT
Topic
Name
4+5 =