How do I create SHA512 hash

Creating desktop or client-server database solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7210
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: How do I create SHA512 hash

Post by jacque » Mon Jan 29, 2018 6:36 pm

The salt can be different on every device, it doesn't matter. The string will decrypt properly on the server and after that you can see if the credentials are correct. If you are storing passwords encrypted on the server (you should) you will need to re-encrypt them with a known salt value before storing them.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9801
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: How do I create SHA512 hash

Post by FourthWorld » Mon Jan 29, 2018 8:21 pm

I would caution against storing passwords on a server, even if encrypted. Store only a hash, and a strong one.

The hash needn't be on the client device. Simpler if it isn't. You could add a UUID field to the user DB and use that as salt when hashing.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

teriibi
Posts: 254
Joined: Mon Nov 13, 2017 3:49 pm
Location: Bolivia

Re: How do I create SHA512 hash

Post by teriibi » Mon Jan 29, 2018 8:23 pm

Well, yes its on server...and yes it will be Hash
(looking for the LC syntax in order to use the latest SHA512..If anyone ever ran test with it)

I m thinking of using a Server DB for various 200 users groups, is that conidered as "small" (using same apps)

So distinct group`s member would need to keep their privacy within own groups and between each groups.
I have to figure out a hashing that is as good as it can be but at the same time that could eventually be as simple as pos for a multi group, multi users scheme...(lets say for instance Sport team mbers)

later I´m likely to want to share some datas between selected groups of teams,
i.e. Sports scores for a group of Teams, though that would be in another table.

Post Reply

Return to “Databases”