fixed interactive mode exiting on certain invalid inputs
added the ability to embed newlines in passwords