Following tool will help you on how to decrypt Encrypted Hash to Plain Text 



As a part of 21.1.X or later releases, we have enabled encryption by default. You can use below CLI command to check if its enabled or not

Administrator@Director-1% show system settings encrypt-data enable-encrypting-sensitive-info 

enable-encrypting-sensitive-info true;

If you want to disable this feature you can use the below CLI in config mode in VD to disable encryption feature.

Administrator@Director-1% set system settings encrypt-data enable-encrypting-sensitive-info false



Decrypting encrypted PSK on Versa Director


NOTE: Following Encrypted Key is obtained from Bind Data


Administrator@Director-1> config

Administrator@Director-1% unhide debug

Password: ******    <<<------ password == secret

Administrator@Director-1% request system security decrypt-using-director-private-key cipher-text <string>


Eg: 

Administrator@Director-1% request system security decrypt-using-director-private-key cipher-text UJmEfuwyl0g3L7VCCtHdvQefHXEYDieMwuGStNXA2flgKu4mNJWWrtVqp9bgd4tKw+FdhUqu0CQPULngwwpgPexAvxPBDhzXPGmeQRaa3Ru8EZPt8moG0AUiL8quIeDfBQtW70LFQlpd0N14CFJWt8uslWtwoTv5E+aJ1eYSuSdfeqsV6Ms7p0th4RPydT8njBnBVnQuM7W7JwXpMIZVWm/t3cLcmdmQ/LAcz/bQZvWQ9+glVkuGNlnIwxF5t9LU39HcfcZIUpDPWPkqZqPFPuSH7+hNEoAfW2t+IrPWbLMqX0G7n/wawiB7eYw3pWCQSqiJl8yghyekYoO2JePXAQ==

result Decrypted text : dIrZHIGjPBpP1NJZ

status success

[ok][2023-08-11 16:15:42]


[edit]

Administrator@Director-1%

status success

[ok][2023-08-11 16:12:34]


[edit]

Administrator@Director-1% 


Decrypting encrypted PSK on VOS


NOTE: Following encrypted key is obtained from the appliance configuration


[admin@Branch-01: ~] $ sudo /opt/versa/util/ckey_util <encrypted-text>


Eg:

[admin@Branch-01: ~] $ sudo /opt/versa/util/ckey_util y/f4QzPmBqsRTGg0p15s0A8MNnu8U6miPgCb2WLN1aob79VkRNqp45SDYWaYHW8cdjKLfd/R8w2bd9LapnR6UOnXfjP4t0fuvSqsKro+zry9yJoYmEqjBQOR3YAYvn4WjcU/VWWkzu5JbgJpkHmkjj4ODnlv5V1s2QmSjsxXV+mlsR9Mi/+6eIjV2r92qaRdWfd2DZOjoj1XQbu50cjNKnhFp/cXSYHVT0Qq5+7HOuy74Aimn+l9jMp4suIsc1Lb6B0scX7DXjIppjRVJz9zF7uSipKMoG9ECebO4ljkru3ziQOymYJFe1Bf/zmugb9geXnykyTowuUJe6j8jXCClA==

[sudo] password for admin: 

dIrZHIGjPBpP1NJZ[admin@Branch-01: ~] $