paragonie / pco_prototype

PCO - PHP Crypto Objects
Do What The F*ck You Want To Public License
12 stars 1 forks source link

Constructor #4

Closed paragonie-scott closed 8 years ago

paragonie-scott commented 9 years ago

Should we ditch the DSN and just accept an array instead? i.e.

$AES = new \PCO\Symmetric([
    'driver' => 'openssl',
    'cipher' => 'aes-128'
]);
redragonx commented 9 years ago

Arrays may be easier to read in the long run. What about using JSON if we made some sort of custom parser?

enygma commented 9 years ago

+1 on the array personally...no extra overhead of extra parsing just for the sake of it. I could see allowing both in the future though, just for convenience.

paragonie-scott commented 8 years ago

Okay, that's what I'll go with then.