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

25
LINES

< > BotCompany Repo | #1001591 // Test badly signed message

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

Libraryless. Click here for Pure Java version (1033L/8K/24K).

!747

m {
  p {
    S botID = "Boot Bot";
    S msg = "n";
    S text = format3("please forward to bot *: *", botID, msg);
    S signed = signWithComputerID(text);
    signed = changeCharacter(signed, l(signed)-10, 'x');
    print(signed);
    
    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();
  }
  
  static S changeCharacter(S s, int i, char c) {
    ret s.substring(0, i) + c + s.substring(i+1);
  }
}

Author comment

Began life as a copy of #1001589

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: #1001591
Snippet name: Test badly signed message
Eternal ID of this version: #1001591/1
Text MD5: 5614424e2e8501ef71359a285a3b420a
Transpilation MD5: e7c54e3dbcfac3b94544aa3d38e2aff5
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:24:08
Source code size: 633 bytes / 25 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 547 / 601
Referenced in: [show references]