Re: [Pharo-users] [Pharo-dev] New web tutorial
Dec. 15, 2015
9:23 a.m.
On 15 Dec 2015, at 10:19, Stephan Eggermont <stephan@stack.nl> wrote:
Instead of the really unsafe password: thing, perhaps use
hashPassword: aString ^GRPlatform current secureHashFor: aString
password: anObject passwordHash := self hashPassword: anObject
verifyPassword: aString ^(self hashPassword: aString) = self passwordHash.
passwordHash passwordHash ifNil: [ ^'' ]. ^ passwordHash
That last method is not needed, since 'any string' = nil is false, right ?
3881
Age (days ago)
3881
Last active (days ago)
0 comments
1 participants
participants (1)
-
Sven Van Caekenberghe