I have a ruby client program that encrypts a password using the string # crypt like this
encrypted = password.crypt(SALT)
return encrypted[2, encrypted.size - 2]
it sends it to the server for comparison with the previously stored encrypted string. as I ever needed to send the same encrypted password from a C # application and php web page and still be able to log in with the same password from any other client.
what will be the equivalent code in c # and php for encryption?
source
share