carbond.security.NoopHasher

extends Hasher

A NOOP “hasher” which just returns the data as the digest. Useful as a placeholder or for testing purposes. This offers no security. A real hash function such as BcryptHasher should be used in production.

Methods

hash  
Arguments
  • data (string) – the data to “hash”
Returns the digest (which is just the input data)
Return type string
Description Returns the input data unchanged