File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -552,6 +552,24 @@ protected function command_clean_cache_apc()
552552 }
553553 }
554554
555+ /**
556+ * Function command_create_encryption_key
557+ *
558+ * @author : 713uk13m <dev@nguyenanhung.com>
559+ * @copyright: 713uk13m <dev@nguyenanhung.com>
560+ * @time : 09/01/2021 52:11
561+ */
562+ protected function command_create_encryption_key (): void
563+ {
564+ if (is_cli ()) {
565+ $ this ->load ->library ('encryption ' );
566+ $ key = bin2hex ($ this ->encryption ->create_key (32 ));
567+ ResponseOutput::writeLn ($ key );
568+ exit ();
569+ }
570+ show_404 ();
571+ }
572+
555573 /**
556574 * Check is human by recaptcha from request
557575 *
Original file line number Diff line number Diff line change @@ -552,6 +552,23 @@ protected function command_clean_cache_apc()
552552 }
553553 }
554554
555+ /**
556+ * Function command_create_encryption_key
557+ *
558+ * @author : 713uk13m <dev@nguyenanhung.com>
559+ * @copyright: 713uk13m <dev@nguyenanhung.com>
560+ * @time : 09/01/2021 52:11
561+ */
562+ protected function command_create_encryption_key (): void
563+ {
564+ if (is_cli ()) {
565+ $ this ->load ->library ('encryption ' );
566+ $ key = bin2hex ($ this ->encryption ->create_key (32 ));
567+ ResponseOutput::writeLn ($ key );
568+ exit ();
569+ }
570+ show_404 ();
571+ }
555572 /**
556573 * Check is human by recaptcha from request
557574 *
You can’t perform that action at this time.
0 commit comments