Encrypted One to one relationship for custom auth

I have customized the authentication system. I have CustomUser table and UserPassword table. How to do the relationship like Encrypted(CustomUser.id) = UserPassword.id. I am new in django and your help will be appreciated.