//de-hash 
//Recover admin password for sawmill 5.0.21.
//PocketC tested on a Palm IIIxe
//Larry W. Cashdollar lwc@vapid.dhs.org 8/15/00
//http://vapid.dhs.org

string alpha[58]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","!","@","#","$","%","^","&","*","(",")","_","+","~","<",">","?",":","\"","{","}","|"};

string encode[58]={"=","G","e","K","M","N","Q","S","~","T","f","U","V","W","X","Y","[","a","b","c","y","g","i","m","r","s","\"","#","$","&","-","]","F","L","q","4",".","@","w","I","C","H","2","!","o","E","n","}","Z","%","(","O","v","t","{","z"};

main ()
{

  int x, y;
  string hash;

  hash=gets("Enter Hash");

  for (x = 0; x <= strlen (hash); x++)
    {
 for (y = 0; y < 58; y++) {
if (substr(hash,x,1)==encode[y]){
	puts(alpha[y]);
	break;
   }
 }
}

puts("\n\"+\" could also be a space [ ]\n");

}
