Sending someone a password can be really challenging as you don't trust all the third party Messaging applications. There is one really practical solution to this. But of course only if you are Developer
I don't want to say the same thing as hundred of other pages in internet says. So I will tell in short.
2 person A,B wants to exchange messages.
Suppose your friend want to send you a password
ssh-keygen -m PEM -t rsa -b 4096 -C "yourmail@mail.com"
Save the key as ~/.ssh/message_secret
ssh-keygen -f ~/.ssh/message_secret.pub -e -m pkcs8 > message_secret.pub.pkcs8
Share this file "message_secret.pub.pkcs8" with your friend.
cat friends-secret-file.txt | openssl rsautl -encrypt -pubin -inkey message_secret.pub.pkcs8 > message.enc
Now friend needs to send this file back to you.
cat message.enc | openssl rsautl -decrypt -inkey ~/.ssh/message_secret > friends-secret-file.txt
Enjoy!!