โ˜… Encrypting and signing data using private/public keys in PHP

1 ยท Freek Van der Herten ยท Nov. 9, 2020, 12:31 p.m.
For a project, I needed to make sure that a particular piece of data actually came from a specific source. There are already many packages that allow you to do this, but most are not fun or easy to use. That's why we created a new package called spatie/crypto to do this.Using spatie/crypto #Using this package, it's easy to generate a private and public key.[$privateKey, $publicKey] = (new Spatie\Crypto\RsaKeyPair())->generate(); When passing paths, the generated keys will be passed to those pat...