MCPcopy Create free account
hub / github.com/dev-mastery/comments-api / md5

Function md5

src/comment/index.js:17–22  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

15}
16
17function md5 (text) {
18 return crypto
19 .createHash('md5')
20 .update(text, 'utf-8')
21 .digest('hex')
22}
23
24function sanitize (text) {
25 // TODO: allow more coding embeds

Callers 1

makeHashFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected