You will want to read these two posts to prevent the hack from happening again:
https://wordpress.org/support/topic/hacked-again-encryption-in-wp-config#post-2673297
http://www.wpbeginner.com/wp-tutorials/how-to-find-a-backdoor-in-a-hacked-wordpress-site-and-fix-it/