import javax.crypto.Cipher; sS rsaDecrypt(S encodedText, PublicKey publicKey) ctex { Cipher cipher = Cipher.getInstance("RSA"); cipher.init(Cipher.DECRYPT_MODE, publicKey); ret fromUtf8(cipher.doFinal(base64decode(encodedText))); }
Began life as a copy of #1019601
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: | #1019603 |
| Snippet name: | rsaDecrypt |
| Eternal ID of this version: | #1019603/2 |
| Text MD5: | 7cdaa752252e2c4c1ec66365984cef75 |
| Author: | stefan |
| Category: | javax / encryption |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-11-14 00:15:35 |
| Source code size: | 244 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 477 / 529 |
| Version history: | 1 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |