pbca26
8 years ago
2 changed files with 10 additions and 5 deletions
@ -1,8 +1,15 @@ |
|||||
import { PassPhraseGenerator } from './crypto/passphrasegenerator.js'; |
import { PassPhraseGenerator } from './crypto/passphrasegenerator.js'; |
||||
import { md5 } from './crypto/md5.js'; |
import { md5 } from './crypto/md5.js'; |
||||
|
|
||||
|
let appSessionHash; |
||||
|
|
||||
|
try { |
||||
|
appSessionHash = window.require('electron').remote.getCurrentWindow().appSessionHash; |
||||
|
} catch (e) { |
||||
|
appSessionHash = '1234'; |
||||
|
} |
||||
|
|
||||
export function iguanaSetRPCAuth() { |
export function iguanaSetRPCAuth() { |
||||
var tmpPass = '1234'; //md5(PassPhraseGenerator.generatePassPhrase(128));
|
sessionStorage.setItem('IguanaRPCAuth', appSessionHash); |
||||
sessionStorage.setItem('IguanaRPCAuth', tmpPass); |
console.log('passphraseGen', appSessionHash); |
||||
console.log('passphraseGen', tmpPass); |
|
||||
} |
} |
Loading…
Reference in new issue