Hello,
Is there any way to encrypt strings with only MyDAC components? Or do I need a bcrypt component or something like that?
Encrypt string
Re: Encrypt string
To protect your data, you can use data encryption. MyDAC supports data encryption using the TMyEncryptor component. Take into account, that this component is available only in Professional and Trial Editions. See more details about data encryption in the MyDAC documentation: https://www.devart.com/mydac/docs/encryption.htm
-
- Posts: 7
- Joined: Tue 26 Jun 2018 15:32
Re: Encrypt string
Hello.
Thanks for answearing me.
Sorry for my bad text. What I really need is a function that converts a string to match a hash from php. In PHP, we have the below code to insert the password in our MySQL database.
$password = password_hash($oldpassword, PASSWORD_DEFAULT);
Since the mobile app has a login screen, I need to convert the string to the same hash format to compare with the one stored in our database.
Is there anything in MyDAC or SecureBridge that we can use?
Thanks for answearing me.
Sorry for my bad text. What I really need is a function that converts a string to match a hash from php. In PHP, we have the below code to insert the password in our MySQL database.
$password = password_hash($oldpassword, PASSWORD_DEFAULT);
Since the mobile app has a login screen, I need to convert the string to the same hash format to compare with the one stored in our database.
Is there anything in MyDAC or SecureBridge that we can use?
Re: Encrypt string
MyDAC does not support the specified functionality, as getting a password hash using the password_hash() function is related to PHP functionality, but not MySQL server one.