md5.write
md5.write
Function
Appends text to the summary context and returns a new md5 object.
Syntax
md5(text).write(text)
Parameters
| Parameters | Type | Required | Default value | Description |
|---|---|---|---|---|
| text | Any | No | '' | The text to be appended will be converted into a string first when called. |
Return value
| Type | Description |
|---|---|
| Md5 | Returns a new summary object with appended content. |
Example
result = md5().write('B').write('T').sum() // Output: 277b18808bb6fba9845a813795fe8baa print result
Notes
- write does not modify the original md5 object, but returns a new object.