If you were worried about someone getting the password from your will before your death, you could use Shamir's secret sharing algorithm to spread a password among friends and relatives with instructions to not use it until after your death, so that some number of them have to agree to unlock it together.