Download Jar. Libraryless. Click here for Pure Java version (5999L/43K).
!7 p-exp { KeyPair keys = makeRSAKeyPair(); S pw = randomID(20); S encrypted = rsaEncrypt(pw, keys.getPrivate()); print(encrypted); S decrypted = rsaDecrypt(encrypted, keys.getPublic()); assertEqualsVerbose(pw, decrypted); }
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1019604 |
| Snippet name: | RSA-Based Encrypted Password Transfer Spike [OK] |
| Eternal ID of this version: | #1019604/1 |
| Text MD5: | 99ea9457532a9d933b46bc837e66bb2b |
| Transpilation MD5: | c7a59477db2f0c4af506fe076f29f03a |
| Author: | stefan |
| Category: | javax / encryption |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-11-14 00:16:58 |
| Source code size: | 246 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 764 / 1583 |
| Referenced in: | [show references] |