# Nitrokey HSM - Encrypt share values output from create-dkek-share

**URL:** <https://support.nitrokey.com/t/nitrokey-hsm-encrypt-share-values-output-from-create-dkek-share/1023>\
**Category:** Misc\
**Created:** [April 6, 2018, 12:48pm UTC](https://support.nitrokey.com/t/nitrokey-hsm-encrypt-share-values-output-from-create-dkek-share/1023 "2018-04-06T12:48:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cda](https://support.nitrokey.com/user_avatar/support.nitrokey.com/cda/32/207_2.png) [@cda](https://support.nitrokey.com/u/cda)\
**Post date:** [April 6, 2018, 12:48pm UTC](https://support.nitrokey.com/t/nitrokey-hsm-encrypt-share-values-output-from-create-dkek-share/1023/1 "2018-04-06T12:48:56Z")

</div>

I have a feature request related to [this issue](https://support.nitrokey.com/t/nitrokey-hsm-create-dkek-share-with-threshold-scheme-not-prompting-for-password/996). Let’s say I want to avoid that the SSS share values ever be output on the screen or even go through the RAM of the PC (like it is the case for other much pricier HSMs), when I run the command `create-dkek-share` with a threshold scheme . One solution would consist, for each generated share value, to have the key custodian enter a password of his/her choice, and make the HSM encrypt the share value with this password using password-based encryption scheme, and either store the result in the HSM, or return it to the sc-hsm-tool to be saved outside.  
To implement that, is it necessary to modify Nitrokey’s firmware? or simply modifying OpenSC would be enough (esp. sc-hsm-tool) ?
