I have a site with confidential information. I also have a private network (closed to the Internet) on which the data on my website is synchronized.
I have user accounts that access the website using the private identifier and password that they choose. And I want to know their passwords from the internal network (closed).
So, I was thinking about using two types of encryption. HASH (1-way) for login and authentication. And RSA (public key) for encrypting the password on my website and decrypting it using the private key in my private network.
I wanted to know if my method is sufficiently secure (or perhaps too secure?), Or is there a better option.
And also, which library should I use for RSA encryption?
Thanks in advance, Amir.
source share