Libraryless. Click here for Pure Java version (4602L/26K).
sS md5OfStream(InputStream in) ctex { if (in == null) ret "-"; temp in; MessageDigest md5 = MessageDigest.getInstance("MD5"); byte[] buf = new[65536]; int l; while (true) { l = in.read(buf); if (l <= 0) break; md5.update(buf, 0, l); } ret bytesToHex(md5.digest()); }
Began life as a copy of #1016251
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034044 |
Snippet name: | md5OfStream |
Eternal ID of this version: | #1034044/3 |
Text MD5: | 04962cf1b4045226bfd321a9f2182f91 |
Transpilation MD5: | 2a206675f8ff6ea5f3b3df20ddb147b0 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-18 13:32:10 |
Source code size: | 316 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 144 / 210 |
Version history: | 2 change(s) |
Referenced in: | [show references] |