How do I create SHA512 hash
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 7215
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: How do I create SHA512 hash
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
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 9802
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: How do I create SHA512 hash
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.
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: How do I create SHA512 hash
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.
(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.