OS X 10.11 Disk Utility, encrypted dmg password and keychain
Using Disk Utility (in El Capitan) you won't be asked at all to save the password to a keychain while creating the encrypted dmg. But after unmounting and reopening the newly created encrypted dmg you will be asked to enter the password and the option to save it to the keychain will be shown: