The details of how to implement the selenium password encryption is shared on medium https://tahera-firdose.medium.com/how-do-i-create-an-encrypted-string-for-password-800092e17a56
you can refer to this repository to get the code on how to encrypt and decrypt the password using AES Encryption.
- I have added all the required methods in AESUtils.java which can be found under src\main\java\Resources\AESUtils.java
- I have implemented the encryption and decryption of password in HomePageTest.java which can be found under src\test\java\ApplicationPages\HomePageTest.java
- config.Properties fiand base class is placed under src\main\java\Resources