Migration from WordPress to Custom

I am looking into completely redeveloping my BuddyPress website in PHP & MySQL without using WordPress or a CMS at all. When doing this, I need to make sure that I transfer all my users and their basic data (password, email, username, name).

How would I go about this? I noticed that WP encrypts passwords in DB.