You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/07/22 06:17:12 UTC

[GitHub] [shardingsphere] justbk2015 commented on pull request #11440: add feature of encrypt password in config file

justbk2015 commented on pull request #11440:
URL: https://github.com/apache/shardingsphere/pull/11440#issuecomment-884680505


   > I don't see any key to use to encrypt or decrypt. Does it mean that there is no key for password encryption.
   
   the key is variable named secretBytes which generate by SecureRandom, in 16 bytes. 
   we use this key to encrypt password, and saved as base64 string in encrypt function return;  in decrypt, we first extract key and iv from base64string and run aes to decrypt the password plaint text.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org