Libraryless. Click here for Pure Java version (5144L/32K/114K).
1 | !7 |
2 | |
3 | p { |
4 | bool have = nempty(muricaPassword()); |
5 | print("Have password already? " + yn(have)); |
6 | |
7 | S pass; |
8 | if (args.length >= 1) { |
9 | print("Have args: " + sfu(args)); |
10 | pass = args[0]; |
11 | } else { |
12 | print("Please give 'murica pass." + (have ? " (Enter to delete)" : "")); |
13 | pass = trim(readLineHidden()); |
14 | } |
15 | |
16 | saveTextFile(muricaPasswordFile(), pass); |
17 | print("ok, password " + (empty(pass) ? "cleared" : "saved") + "."); |
18 | } |
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: | 631 / 2129 |
Version history: | 4 change(s) |
Referenced in: | [show references] |