Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

18
LINES

< > BotCompany Repo | #1008829 // Store 'murica password on machine for later use

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (5144L/32K/114K).

!7

p {
  bool have = nempty(muricaPassword());
  print("Have password already? " + yn(have));
  
  S pass;
  if (args.length >= 1) {
    print("Have args: " + sfu(args));
    pass = args[0];
  } else {
    print("Please give 'murica pass." + (have ? " (Enter to delete)" : ""));
    pass = trim(readLineHidden());
  }
  
  saveTextFile(muricaPasswordFile(), pass);
  print("ok, password " + (empty(pass) ? "cleared" : "saved") + ".");
}

Author comment

Began life as a copy of #1000896

download  show line numbers  debug dex  old transpilations   

Travelled to 23 computer(s): aoiabmzegqzx, bhatertpkbcr, bmzxzaunwzbi, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, hpgrupgrauku, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, nbgitpuheiab, odkhaoglnmdk, pyentgdyhuwx, pzhvpgtvlbxg, snaazhdonpnp, tslmcundralx, tvejysmllsmz, vouqrxazstgt, wtqryiryparv, xfbsdwenvhih, xrpafgyirdlv

No comments. add comment

Snippet ID: #1008829
Snippet name: Store 'murica password on machine for later use
Eternal ID of this version: #1008829/5
Text MD5: b89e4ea146d14620b280ad886e63540f
Transpilation MD5: 202d9b11b4a68ac21e41fd6231591483
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-04 17:58:13
Source code size: 456 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 629 / 2125
Version history: 4 change(s)
Referenced in: [show references]