HDInnovations / UNIT3D-Community-Edition

Private Torrent Tracker Built With Laravel, Livewire and AlpineJS.
GNU Affero General Public License v3.0
1.94k stars 370 forks source link

Encryption Trait #1

Closed HDVinnie closed 6 years ago

HDVinnie commented 6 years ago

Create a trait providing encryption and decryption of model fields on the fly. Possibly use laravel's built in crypto. This could be useful for encrypting fields in users table like "email"? Peers and Clients table like "IP".

The encrypted value stored would be based off the UNIT3D APP_KEY, generated at install, using the algorithm defined in the config/app.php cipher setting. If the application key is changed or lost during production there would be no way to retrieve the data. This is the case if were to use built in Crypto.

HDVinnie commented 6 years ago

Forgot to mark this closed in commit 83a4404b31c242ba89097e3617d1714cbba6f48b

This will be used in next version release