1 | // uses empty salt & empty IV |
2 | static byte[] aesDecrypt(byte[] data, S password) ctex { |
3 | SecretKey secret = crypto_makeAESKey(password, crypto_emptySalt()); |
4 | Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding"); |
5 | cipher.init(Cipher.DECRYPT_MODE, secret, crypto_emptyIV()); |
6 | ret crypto_cipherBytes(cipher, data); |
7 | } |
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: | 681 / 626 |
Referenced in: | [show references] |