use the parameters set by app instead of the default values
Merge pull request #768 from ruil2/enc_param

use the parameters set by app instead of the default values