sign up hook

on user sign up i need to generate him a key pair and encode the private key with his password, then save it to the user table in database, how can i do it in better auth?
Was this page helpful?