*Gnomon can tether time or tide. - Robert Burns, 1790* ######### Ops Notes ######### :Author: Dimitry Dukhovny .. toctree:: :maxdepth: 2 :caption: The UNIX Way sub-pages io_procedures io_procedures-response government_jargon .. contents:: Creating and communicating passwords ==================================== Users are unreliable. They forget passwords. Processes sometimes suck and require you to set passwords. It's a worst-practice and yet it's a common one. The least we can do is stop pretending it doesn't happen and give you some tools to handle it. Create UNIX password hash ------------------------- I use a simple script I call *hashit.sh*. Similar code is all over the Internet, but the orignal source seems to be the ActiveState official website. .. code-block:: bash :linenos: python -c "import getpass, sys, random, string, crypt; randomsalt = ''.join(random.sample(string.ascii_letters,8)); sys.stdout.write(crypt.crypt(getpass.getpass(), '\$6\$%s\$' % randomsalt))" Store or communicate a password reliably ---------------------------------------- Given font differences and difficulty hearing things clearly by phone, phonetics are definitely the way to go for password storage and communication. :download:`Download ddpwprint.py ` .. literalinclude:: code_samples/ddpwprint.py :linenos: :language: python You can read the output clearly to most government and military officials. IO Procedures ============= See `IO Procedures`_. .. _IO Procedures: io_procedures.html Government Jargon ================= See `Government Jargon`_. .. _Government Jargon: government_jargon.html