public static void decryptDatabase()//called once user enters password
	{
		File f = new File ("TransactionDatabase.txt");
		String databaseString = Decryption.decryptFile(f);
		testHash = SellerEncryption.hash(databaseString);
		String[] databaseArray = databaseString.split("\n");
		
		for (int i=0; i<databaseArray.length; i++)
		{
			database.add(databaseArray[i]);
		}
		
		File f2 = new File ("WaitingTransactionsDatabase.txt");
		String waitingDataString = Decryption.decryptFile(f2);
		String[] waitingDataArray = waitingDataString.split("\n");
		
		for (int i=0; i<waitingDataArray.length; i++)
		{
			waitingData.add(waitingDataArray[i]);
		}

		databaseDecrypted=true;
	}