Libraryless. Click here for Pure Java version (9233L/51K).
sS md5(String text) ctex { if (text == null) ret "-"; return bytesToHex(md5AsByteArray(toUtf8(text))); // maybe different than the way PHP does it... } sS md5(byte[] data) { if (data == null) ret "-"; ret bytesToHex(md5AsByteArray(data)); } sS md5(File file) { ret md5OfFile(file); }
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
Snippet ID: | #1000998 |
Snippet name: | md5 - MD5 checksum as hex string |
Eternal ID of this version: | #1000998/6 |
Text MD5: | ae21c02855d1dc468bc7b0ad40b1ac92 |
Transpilation MD5: | 4e012775349468e1f17e0f6c00cd4a7d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-07-29 21:14:32 |
Source code size: | 307 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 838 / 5397 |
Version history: | 5 change(s) |
Referenced in: | #1002427 - Accellerating 629 (SPIKE) #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1016251 - md5OfFile #1023345 - sha256 #1027113 - md5encoder #1035805 - md5AsByteArray #3000382 - Answer for ferdie (>> t = 1, f = 0) |