#!/bin/bash
if [ $# -ne 2 ] ; then
  echo "USAGE: $0 <password> <salt>"
  exit 1
fi

perl -e 'print crypt("'$1'","\$6\$'$2'\$") . "\n"'
