 <p>The password wasn't encrypted; it was <a href="https://en.wikipedia.org/wiki/Cryptographic_hash_function" rel="nofollow noreferrer">hashed</a> using <a href="http://perldoc.perl.org/functions/crypt.html" rel="nofollow noreferrer"><code>crypt</code></a>.</p> <pre><code>$ perl -e'CORE::say crypt($ARGV[0], $ARGV[1]) eq $ARGV[1] ? 1 : 0' 123456 cb897EaMgDZy6 1 </code></pre> <p>Note that use of <code>crypt</code> must be avoided! It is far too weak to be of any value.</p>