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

18
LINES

< > BotCompany Repo | #1000896 // Set standard credentials [save user name and password for later use]

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

Libraryless. Click here for Pure Java version (584L/5K/16K).

!752

p {
  S user, pass;
  if (args.length >= 2) {
    user = args[0];
    pass = args[1];
  } else {
    print("User?");
    user = readLine();
    print("Pass?");
    pass = readLineHidden();
  }
  
  saveTextFile(new File(userHome(), ".tinybrain/username").getPath(), user);
  saveTextFile(new File(userHome(), ".tinybrain/userpass").getPath(), pass);
  print("ok, credentials saved.");
}

download  show line numbers  debug dex  old transpilations   

Travelled to 38 computer(s): aoiabmzegqzx, ayivmpnvhhik, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, dhtvkmknsjym, djztyncnmsck, ekrmjmnbrukm, gjtlkbvenryc, gwrvuhgaqvyk, iavmkmvmshxs, ishqpsrjomds, jcllbfdqhrgy, jtubtzbbkimh, lpdgvwnxivlt, moomcjjtfopu, mowyntqkapby, mqqgnosmbjvj, odhhsrjjbcgr, onxytkatvevr, pcsjzfqafodr, pnmttuucjkfb, ppjhyzlbdabe, pyentgdyhuwx, pzhvpgtvlbxg, qsqiayxyrbia, sawdedvomwva, teubizvjbppd, triorysbatvj, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, wnsclhtenguj, wtqryiryparv, xfbsdwenvhih, xrpafgyirdlv

No comments. add comment

Snippet ID: #1000896
Snippet name: Set standard credentials [save user name and password for later use]
Eternal ID of this version: #1000896/1
Text MD5: 46d6d50bbdcc296e0a64ed1ddaecfc03
Transpilation MD5: 284b95bac019764a0d531fb67422bcbe
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-10-22 19:28:19
Source code size: 411 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 647 / 1348
Referenced in: [show references]