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

5
LINES

< > BotCompany Repo | #1023697 // pkiKeyPairFromTwoLineFile (first line is public key, second line is private key)

JavaX fragment (include)

1  
static PKIKeyPair pkiKeyPairFromTwoLineFile(File f) {
2  
  LS l = tlft(loadTextFile(f));
3  
  if (l(l) == 2) ret PKIKeyPair(second(l), first(l));
4  
  null;
5  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023697
Snippet name: pkiKeyPairFromTwoLineFile (first line is public key, second line is private key)
Eternal ID of this version: #1023697/1
Text MD5: 3096a661e83a7e2d6dccdf507d6a8731
Author: stefan
Category: javax / crypto
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-03 13:19:25
Source code size: 153 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 316 / 326
Referenced in: [show references]