Commit Graph

16 Commits

Author SHA1 Message Date
Roardom
2085656e76 fix: various larastan helper issues 2023-08-25 07:21:45 +00:00
HDVinnie
f6bf6a326e PSR12 Linting 2022-09-11 23:54:18 +00:00
HDVinnie
c0eeef8808 update: helpers 2022-02-28 04:59:08 -05:00
HDVinnie
f254bb6fc6 Apply fixes from StyleCI
[ci skip] [skip ci]
2020-12-29 05:20:55 +00:00
HDVinnie
a3d8d1b975 update: backup password and encryption
- restructure to be purely ZipArchive-based
2020-12-29 00:20:33 -05:00
HDVinnie
8ceb7df9b8 refactor: exceptions 2020-12-02 20:57:04 -05:00
HDVinnie
64807a6f7a refactor: remove always else 2020-06-30 16:52:53 -04:00
HDVinnie
f90bfe8814 Apply fixes from StyleCI
[ci skip] [skip ci]
2020-05-19 02:59:08 +00:00
HDVinnie
4748e9ef7c refactor: backup manager 2020-05-18 21:28:20 -04:00
HDVinnie
e47afe4ab4 chore: styleci 2020-02-12 14:51:22 -05:00
HDVinnie
80c842e39c chore: update license block
- make styleci happy
2020-02-12 14:49:18 -05:00
HDVinnie
dbb928f940 chore: update license block 2020-02-12 14:45:59 -05:00
HDVinnie
eed3b51c92 (Update) CRUDDY PT.7 🚀 2019-10-25 17:35:14 -04:00
Laravel Shift
dcc003602b Adopt Laravel coding style
The Laravel framework adopts the PSR-2 coding style with some additions.
Laravel apps *should* adopt this coding style as well.

However, Shift allows you to customize the adopted coding style through
the [.shiftrc][1] file by using your [PHP CS Fixer][2] config.

[1]: https://laravelshift.com/shiftrc-configuration-file
[2]: https://github.com/FriendsOfPHP/PHP-CS-Fixer
2019-05-09 00:04:58 +00:00
HDVinnie
00d37e2b38 Apply fixes from StyleCI 2019-02-13 19:20:44 +00:00
HDVinnie
51719ec5b1 (Update) Backup Manger 🔐
- Add Extra Security Measures To Backups!
- We simply listen for when the .zip-file generated by the backupmanger is done, grabs it and applies your password and encryption of your liking.

- NOTE:

Encryption Types:

\App\Helpers\BackupEncryption::ENCRYPTION_DEFAULT (PKWARE/ZipCrypto)
\App\Helpers\BackupEncryption::ENCRYPTION_WINZIP_AES_128 (AES 128)
\App\Helpers\BackupEncryption::ENCRYPTION_WINZIP_AES_192 (AES 192)
\App\Helpers\BackupEncryption::ENCRYPTION_WINZIP_AES_256 (AES 256)

Important information regarding encryption:

Using the ENCRYPTION_DEFAULT (PKWARE/ZipCrypto) crypto gives you the best portability as most operating systems can natively unzip the file – however, ZipCrypto might be weak. The Winzip AES-methods on the other hand might require a separate app and/or licence to be able to unzip depending on your OS; suggestions for macOS are Keka and Stuffit Expander.

Also to note is that when zipping very large files ZipCrypto might be very inefficient as the entire data-set will have to be loaded into memory to perform the encryption, if the zipped file's content is bigger than your available RAM you will run out of memory.

Password:

The default is the application key (APP_KEY in your .env-file). You might want to set something more appropriate. Remember to use long strings and to keep your password safe – without it you will never be able to open your backup. Set to NULL if you want to keep your backup without a password.
2019-02-13 13:46:45 -05:00