public static void encryptDatabase(ArrayList<String> storedTransactions)
	{
		String databaseString = storedTransactions.get(0);
		for (int i=1; i<storedTransactions.size(); i++)
		{
			databaseString = databaseString + "\n" + storedTransactions.get(i);
		}
		String databaseHash = SellerEncryption.hash(databaseString);//hash storedTransactions
		SellerBackEnd.setDatabaseHash(databaseHash);
		
		byte[] databaseBytes = SellerEncryption.encryptString(databaseString);//encrypt storedTransactions using symmetric key
		File encryptedFile = new File ("TransactionDatabase.txt");
		SellerEncryption.writeToFile(databaseBytes, encryptedFile);
		
	}