Encrypt tomcat keystore password

前端 未结 6 975
北海茫月
北海茫月 2020-12-25 08:44

Is there an option to encrypt keystorePass value in tomcat server.xml? I don\'t want it to be a plain text

    

        
6条回答
  •  情深已故
    2020-12-25 09:09

    Here's a handy Perl one-liner to XML encode a password:

    $ perl -pe 's/(.)/"&#".ord($1).";"/eg;' <<< 'secret'
    # secret
    

提交回复
热议问题