1 | import javax.crypto.Cipher; |
2 | |
3 | sS rsaDecrypt(S encodedText, PublicKey publicKey) ctex { |
4 | Cipher cipher = Cipher.getInstance("RSA"); |
5 | cipher.init(Cipher.DECRYPT_MODE, publicKey); |
6 | ret fromUtf8(cipher.doFinal(base64decode(encodedText))); |
7 | } |
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: | 245 / 302 |
Version history: | 1 change(s) |
Referenced in: | [show references] |