Once created, master keys become the default protection method for encryption keys. A dual master key is required only for dual control of column and database encryption keys.
Only users with sso_role or keycustodian_role can create the master key and dual master key. There can only be one master and one dual master key for a database.
To create the master and dual master keys use:
create encryption key [dual] master [for AES] with passwd char_literal
master and dual master refer to database-level keys used to encrypt other keys within the database in which they are defined. These keys are not used to encrypt data. The master key is named internally as sybencrmasterkey in sysobjects, and the dual master key is named internally as sybencrdualmasterkey in sysobjects.
with passwd must be followed by a character string password that adheres to sp_passwordpolicy.
See the Reference Manual: Commands.
use database tdb1 create encryption key master with passwd 'unforgetablethatswhatyouare'
use database tb1 create encryption key dual master with passwd 'dualunforgettable'
create table t2 (c1 int encrypt with master)
alter encryption key [dual] master with passwd <char_literal> modify encryption with passwd <char_literal>