You want to examine if God is good by his actions. You equate God's judgements on sin as being evil. What do you think it means when the Bible says God 'hardened' someone's heart? I don't believe for a second that God arbitrarily hardens some hearts and not others for He is no respecter of person and He is just. Therefore if God hardens a heart He has reason because of His foreknowledge. Here are some examples of why God hardens hearts:
18 For the wrath of God is revealed from heaven against all ungodliness and unrighteousness of men, who hold the truth in unrighteousness;
19 Because that which may be known of God is manifest in them; for God hath shewed it unto them.
20 For the invisible things of him from the creation of the world are clearly seen, being understood by the things that are made, even his eternal power and Godhead; so that
they are without excuse:
21 Because that, when they knew God, they glorified him not as God, neither were thankful; but became vain in their imaginations, and their foolish heart was darkened.
22 Professing themselves to be wise, they became fools,
23 And changed the glory of the uncorruptible God into an image made like to corruptible man, and to birds, and fourfooted beasts, and creeping things.
24
Wherefore God also gave them up to uncleanness through the lusts of their own hearts, to dishonour their own bodies between themselves:
25 Who changed the truth of God into a lie, and worshipped and served the creature more than the Creator, who is blessed for ever. Amen.
26
For this cause God gave them up unto vile affections: for even their women did change the natural use into that which is against nature:
27 And likewise also the men, leaving the natural use of the woman, burned in their lust one toward another; men with men working that which is unseemly, and receiving in themselves that recompence of their error which was meet.
28 And even as they did not like to retain God in their knowledge,
God gave them over to a reprobate mind, to do those things which are not convenient;
29 Being filled with all unrighteousness, fornication, wickedness, covetousness, maliciousness; full of envy, murder, debate, deceit, malignity; whisperers,
30 Backbiters, haters of God, despiteful, proud, boasters, inventors of evil things, disobedient to parents,
31 Without understanding, covenantbreakers, without natural affection, implacable, unmerciful:
32 Who knowing the judgment of God, that they which commit such things are worthy of death, not only do the same, but have pleasure in them that do them
Isa 63:17 O LORD,
why hast thou made us to err from thy ways, and hardened our heart from thy fear? Return for thy servants' sake, the tribes of thine inheritance.
Dan 5:20 But
when his heart was lifted up, and his mind hardened in pride, he was deposed from his kingly throne, and they took his glory from him:
Isa 44: 9 They that make a graven image are all of them vanity; and their delectable things shall not profit; and they are their own witnesses; they see not, nor know; that they may be ashamed.
10 Who hath formed a god, or molten a graven image that is profitable for nothing?
11 Behold, all his fellows shall be ashamed: and the workmen, they are of men: let them all be gathered together, let them stand up; yet they shall fear, and they shall be ashamed together.
12 The smith with the tongs both worketh in the coals, and fashioneth it with hammers, and worketh it with the strength of his arms: yea, he is hungry, and his strength faileth: he drinketh no water, and is faint.
13 The carpenter stretcheth out his rule; he marketh it out with a line; he fitteth it with planes, and he marketh it out with the compass, and maketh it after the figure of a man, according to the beauty of a man; that it may remain in the house.
14 He heweth him down cedars, and taketh the cypress and the oak, which he strengtheneth for himself among the trees of the forest: he planteth an ash, and the rain doth nourish it.
15 Then shall it be for a man to burn: for he will take thereof, and warm himself; yea, he kindleth it, and baketh bread; yea, he maketh a god, and worshippeth it; he maketh it a graven image, and falleth down thereto.
16 He burneth part thereof in the fire; with part thereof he eateth flesh; he roasteth roast, and is satisfied: yea, he warmeth himself, and saith, Aha, I am warm, I have seen the fire:
17 And the residue thereof he maketh a god, even his graven image: he falleth down unto it, and worshippeth it, and prayeth unto it, and saith, Deliver me; for thou art my god.
18
They have not known nor understood: for he hath shut their eyes, that they cannot see; and their hearts, that they cannot understand.
19 And none considereth in his heart, neither is there knowledge nor understanding to say, I have burned part of it in the fire; yea, also I have baked bread upon the coals thereof; I have roasted flesh, and eaten it: and shall I make the residue thereof an abomination? shall I fall down to the stock of a tree?
20 He feedeth on ashes:
a deceived heart hath turned him aside, that he cannot deliver his soul, nor say, Is there not a lie in my right hand?
Ps 78:28 And he let it fall in the midst of their camp, round about their habitations.
29 So they did eat, and were well filled: for
he gave them their own desire;
30 They were not estranged from their lust. But while their meat was yet in their mouths,
31 The wrath of God came upon them, and slew the fattest of them, and smote down the chosen men of Israel.
32 For all this they sinned still, and believed not for his wondrous works.
33 Therefore their days did he consume in vanity, and their years in trouble. 34 When he slew them, then they sought him: and they returned and enquired early after God.
35 And they remembered that God was their rock, and the high God their redeemer. 36 Nevertheless they did flatter him with their mouth, and they lied unto him with their tongues.
37
For their heart was not right with him, neither were they stedfast in his covenant.
38 But he, being full of compassion, forgave their iniquity, and destroyed them not: yea, many a time turned he his anger away, and did not stir up all his wrath.
39 For he remembered that they were but flesh; a wind that passeth away, and cometh not again.
Ps 81:10 I am the LORD thy God, which brought thee out of the land of Egypt: open thy mouth wide, and I will fill it.
11 But my people would not hearken to my voice; and Israel would none of me.
12
So I gave them up unto their own hearts' lust: and they walked in their own counsels.
13 Oh that my people had hearkened unto me, and Israel had walked in my ways!
14 I should soon have subdued their enemies, and turned my hand against their adversaries.