User Tools

Site Tools


sample_code:passwordvault

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
sample_code:passwordvault [2022/07/24 17:04]
al4he6 created
sample_code:passwordvault [2022/07/25 16:22]
al4he6 changed to downloadable
Line 11: Line 11:
 Requires the Biometric plugin (or you could comment out that code)\\ Requires the Biometric plugin (or you could comment out that code)\\
    
-<code>+<file js passwordvault.js>
 app.LoadPlugin( "Biometric" ) app.LoadPlugin( "Biometric" )
 var mpw  // plaintext master password var mpw  // plaintext master password
Line 63: Line 63:
 } // fn } // fn
 function opendb () { function opendb () {
-    db = app.OpenDatabase( "Vault" )  +//    db = app.OpenDatabase( "Vault" ) // does not work as APK   
 +    db = app.OpenDatabase(app.GetSpecialFolder("Downloads")+"/Vault" )  
     db.ExecuteSql("CREATE TABLE IF NOT EXISTS passwords (site text primary key, epw text)")       db.ExecuteSql("CREATE TABLE IF NOT EXISTS passwords (site text primary key, epw text)")  
 //db.ExecuteSql("DELETE FROM passwords",[],null,delError) // testing //db.ExecuteSql("DELETE FROM passwords",[],null,delError) // testing
Line 167: Line 168:
 } }
  
-</code>+</file>
sample_code/passwordvault.txt · Last modified: 2022/07/26 11:37 by al4he6