Page 1 of 1
Encrypt string
Posted: Tue 31 Jul 2018 03:39
by cortecerto
Hello,
Is there any way to encrypt strings with only MyDAC components? Or do I need a bcrypt component or something like that?
Re: Encrypt string
Posted: Tue 31 Jul 2018 08:19
by ViktorV
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
Re: Encrypt string
Posted: Tue 31 Jul 2018 15:46
by cortecerto
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?
Re: Encrypt string
Posted: Mon 06 Aug 2018 08:48
by ViktorV
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.