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

24
LINES

< > BotCompany Repo | #1001589 // Tunnel signed command to remote bot

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

Libraryless. Click here for Pure Java version (1381L/10K/31K).

!747

m {

  static S masterKey = loadSnippet("#1001582");

  p {
    S botID = "Boot Bot";
    S msg = "n";
    S text = format3("please forward to bot *: *", botID, msg);
    S signed = signWithComputerID(text);
    print(signed);
    print("OK? " + isSignedWithKey(signed, masterKey));
    
    DialogIO io = talkTo("second.tinybrain.de", 4999);
    S greeting = io.readLine();
    S line = format3("signed: *", signed);
    print (">> " + line);
    io.sendLine(line);
    S answer = io.readLine();
    print ("<< " + answer);
    io.close();
  }
}

Author comment

Works only on authorized machine

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1001589
Snippet name: Tunnel signed command to remote bot
Eternal ID of this version: #1001589/1
Text MD5: 2bed58ac942d16c5971ab9bb21b25bf1
Transpilation MD5: f248ddfb50fa7714139d4bf6298236af
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-25 22:19:16
Source code size: 575 bytes / 24 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 610 / 627
Referenced in: [show references]