What is the meaning of [rotten to the core]

Sam is rotten to the core (entirely evil). He steals, he lies, he’s violent. I’m glad he’s in prison.