md5 summary library
md5 summary library
Function
md5(text) creates a summary object, supports chained write to append text, and outputs hexadecimal summary through ok, sum or to_string.
API List
| API | Description |
|---|---|
| md5.write | Append text to the digest context and return a new md5 object. |
| md5.ok | Outputs the hexadecimal MD5 string of the current digest. |
Examples
result = md5().write('B').write('T').ok() // Output: 277b18808bb6fba9845a813795fe8baa print result
Notes
- MD5 is not suitable for password storage and secure signatures.