Libraryless. Click here for Pure Java version (9233L/51K).
1 | sS md5(String text) ctex { |
2 | if (text == null) ret "-"; |
3 | return bytesToHex(md5AsByteArray(toUtf8(text))); // maybe different than the way PHP does it... |
4 | } |
5 | |
6 | sS md5(byte[] data) { |
7 | if (data == null) ret "-"; |
8 | ret bytesToHex(md5AsByteArray(data)); |
9 | } |
10 | |
11 | sS md5(File file) { |
12 | ret md5OfFile(file); |
13 | } |
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: | 836 / 5395 |
Version history: | 5 change(s) |
Referenced in: | [show references] |