The MD5Filter is validate and/or sanatize a MD5 hash.

Extends AbstractFilter
Defined in: lib/filter/md5.js:5

Methods

sanitize (value)

Inherited from AbstractFilter but overwritten in lib/filter/md5.js:31

This method will sanitize the MD5 hash.

Parameters

Name Type Description
value * The value to be sanitized.

Returned Value

String: The validated md5 hash.


validate (value)

Inherited from AbstractFilter but overwritten in lib/filter/md5.js:12

The validate method will check if the md5 hash is valid or not.

Parameters

Name Type Description
value * The value to validate.

Returned Value

Boolean: If the value is valid or not.