same

Function same 

Source
pub fn same(a: &str, b: &str) -> bool
Expand description

Equality that does not stop at the first difference.

Length is compared first and in the clear, because the length of a digest is not a secret and padding two strings to a common length to hide it would be answering a question nobody asked.