Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nutrapharm_producto
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cristian Mauricio Diaz Canales
nutrapharm_producto
Commits
738b00e2
Commit
738b00e2
authored
May 28, 2020
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prueba de logs
parent
6cfb18c2
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
625 additions
and
0 deletions
+625
-0
src/AppBundle/Lib/Crypt.php
src/AppBundle/Lib/Crypt.php
+28
-0
src/AppBundle/Lib/Documentos.php
src/AppBundle/Lib/Documentos.php
+151
-0
src/AppBundle/Lib/Utiles.php
src/AppBundle/Lib/Utiles.php
+446
-0
No files found.
src/AppBundle/Lib/Crypt.php
0 → 100644
View file @
738b00e2
<?php
namespace
AppBundle\Lib
;
/**
* Encripta en md5
*
* @author Luis Arcos
*/
class
Crypt
{
public
$key
=
NULL
;
function
Crypt
()
{
}
function
AES_Encode
(
$plain_text
)
{
return
base64_encode
(
openssl_encrypt
(
$plain_text
,
"aes-256-cbc"
,
$this
->
key
,
true
,
str_repeat
(
chr
(
0
),
16
)));
}
function
AES_Decode
(
$base64_text
)
{
return
openssl_decrypt
(
base64_decode
(
$base64_text
),
"aes-256-cbc"
,
$this
->
key
,
true
,
str_repeat
(
chr
(
0
),
16
));
}
}
src/AppBundle/Lib/Documentos.php
0 → 100644
View file @
738b00e2
This diff is collapsed.
Click to expand it.
src/AppBundle/Lib/Utiles.php
0 → 100644
View file @
738b00e2
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment