Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Encrypt string
Message
From
30/10/2023 12:57:56
 
 
To
30/10/2023 12:51:05
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Title:
Miscellaneous
Thread ID:
01687138
Message ID:
01687145
Views:
50
I encrypt a password in MySQL
inputcode='@bcde'

STORE calcSqlConnect() TO dlnConnHandle
TEXT TO dlcSQL TEXTMERGE noshow
SELECT sha1(inputcode) as myencrypt 
ENDTEXT 
STORE SQLEXEC(dlnConnHandle,dlcSql,'myresult') TO dlnSql
SQLDISCONNECT(dlnConnHandle)
How can I take out the return value from MySQL?


Thanks for the help

Jerry



>You can't reverse a hashed password, period.
>
>>Got it.
>>
>>My understanding is if I use SHA-1, and the user knows I use SHA-1, there is no way to reverse it. Is that correct?
>>
>>Jerry
>>
>>
>>
>>>>How can I encrypt a string, example I want to encrypt the password
>>>
>>>Basically, you don't. A better idea is to store the value ("digest") of the string when processed through a hash function.
>>>
>>>Overview at https://securityboulevard.com/2020/05/hashing-what-you-need-to-know-about-storing-passwords/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform