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).

1  
!747
2  
3  
m {
4  
  p {
5  
    S botID = "Boot Bot";
6  
    S msg = "n";
7  
    S text = format3("please forward to bot *: *", botID, msg);
8  
    S signed = signWithComputerID(text);
9  
    signed = changeCharacter(signed, l(signed)-10, 'x');
10  
    print(signed);
11  
    
12  
    DialogIO io = talkTo("second.tinybrain.de", 4999);
13  
    S greeting = io.readLine();
14  
    S line = format3("signed: *", signed);
15  
    print (">> " + line);
16  
    io.sendLine(line);
17  
    S answer = io.readLine();
18  
    print ("<< " + answer);
19  
    io.close();
20  
  }
21  
  
22  
  static S changeCharacter(S s, int i, char c) {
23  
    ret s.substring(0, i) + c + s.substring(i+1);
24  
  }
25  
}

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: 549 / 605
Referenced in: [show references]