Fix readpassphrase for BSD
CLEANUP: doc
REFACTOR: license
REFACTOR: license
REFACTOR: license
REFACTOR: license
REFACTOR: Copyright 2014