added support for user-input of data encryption key