And I am a LastPass customer!
(edit: clarification, I meant to portray my disdain for php. I still like (and trust) LastPass!)
And I am a LastPass customer!
(edit: clarification, I meant to portray my disdain for php. I still like (and trust) LastPass!)
https://github.com/paragonie/halite/blob/master/src/Symmetri...
(Disclaimer: My project.)
// Split our keys
list($encKey, $authKey) = self::splitKeys($secretKey, $salt, $config);
Also what's happening here? This could do with a comment for more junior devs. It's impossible to Google "function with a colon on the end of it in php" public static function decrypt( [..] ): HiddenString { [..] }
Edit: Re-phrased my wording to be a bit less boorishThanks for looking through the code. I'll make the comments more meaningful on my next run through.
> Also what's happening here? This could do with a comment for more junior devs. It's impossible to Google "function with a colon on the end of it in php"
That's a PHP 7 feature called return type declarations. If it doesn't return an instance of HiddenString, PHP will throw a TypeError.
The way I worded it is implying I'm digging at you sorry. I mean the literal what does this do, I've not come across formatting things like this before
EDIT: https://github.com/paragonie/halite/compare/v3.1.1...3b95d85...