For MongoDB connect: encrypt and decrypt password

#329