Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

It's a hokey workaround, and I still hold out for the "right" way to do this, but I managed to get this working by converting the password value to a hex value and sending that value to the sql server, then decrypting it there.

$password =  bin2hex( 'encryptedpasswordstring' );
        
$results = DB::update("update Users set 
    Password = convert(varchar, 0x" . $password . ") 
    where UserID = ?", array($userid);

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

adietz adietz Joined 22 Aug 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.