setting encryption key