static S remotePriv_masterKey; static S remotePriv(S text, O... data) { if (remotePriv_masterKey == null) remotePriv_masterKey = loadSnippet("#1001582"); text = format(text, data); S signed = signWithComputerID(text); print(signed); print("OK? " + isSignedWithKey(signed, remotePriv_masterKey)); DialogIO io = talkTo("second.tinybrain.de", 4999); try { S greeting = io.readLine(); S line = format3("signed: *", signed); print (">> " + line); io.sendLine(line); S answer = io.readLine(); print ("<< " + answer); ret answer; } finally { io.close(); } }
Began life as a copy of #1001589
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003176 |
Snippet name: | remotePriv - send privileged command to remote public comm bot |
Eternal ID of this version: | #1003176/1 |
Text MD5: | 00b4dfb44e9cde0db3f2e8dbde994d51 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-05-21 03:57:55 |
Source code size: | 634 bytes / 24 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 616 / 575 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |