ignore trailing newlines in the shared secret