Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1005126 // crypto_cipherBytes

JavaX fragment (include)

1  
static byte[] crypto_cipherBytes(Cipher cipher, byte[] data) ctex {
2  
  new ByteArrayOutputStream baos;
3  
  baos.write(cipher.update(data));
4  
  baos.write(cipher.doFinal());
5  
  ret baos.toByteArray(); 
6  
}

Author comment

Began life as a copy of #1005125

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: #1005126
Snippet name: crypto_cipherBytes
Eternal ID of this version: #1005126/1
Text MD5: cc09c08c517cf8fa5adc821e7f84531e
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:18:21
Source code size: 202 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 591 / 596
Referenced in: [show references]