// uses empty salt & empty IV static byte[] aesDecrypt(byte[] data, S password) ctex { SecretKey secret = crypto_makeAESKey(password, crypto_emptySalt()); Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding"); cipher.init(Cipher.DECRYPT_MODE, secret, crypto_emptyIV()); ret crypto_cipherBytes(cipher, data); }
Began life as a copy of #1005124
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1005125 |
| Snippet name: | aesDecrypt |
| Eternal ID of this version: | #1005125/1 |
| Text MD5: | 55916ba9f7c4628be3073e76e0e8e03f |
| Author: | stefan |
| Category: | javax / cryptography |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-10-16 21:10:42 |
| Source code size: | 330 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 893 / 858 |
| Referenced in: | [show references] |