{"id":20323081,"url":"https://github.com/mroblesdev/cifrar-descifrar-simetrico-php","last_synced_at":"2025-06-30T01:32:49.534Z","repository":{"id":197148417,"uuid":"698068291","full_name":"mroblesdev/cifrar-descifrar-simetrico-php","owner":"mroblesdev","description":"Cifrar y descifrar datos con OpenSSL en PHP","archived":false,"fork":false,"pushed_at":"2023-09-29T05:21:52.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T10:15:03.551Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mroblesdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-29T04:54:15.000Z","updated_at":"2024-04-23T19:10:49.000Z","dependencies_parsed_at":"2023-09-29T06:45:11.796Z","dependency_job_id":"d8a1c11f-15db-4006-84b6-2443daa6a86a","html_url":"https://github.com/mroblesdev/cifrar-descifrar-simetrico-php","commit_stats":null,"previous_names":["mroblesdev/cifrar-descifrar-simetrico-php"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mroblesdev/cifrar-descifrar-simetrico-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mroblesdev%2Fcifrar-descifrar-simetrico-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mroblesdev%2Fcifrar-descifrar-simetrico-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mroblesdev%2Fcifrar-descifrar-simetrico-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mroblesdev%2Fcifrar-descifrar-simetrico-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mroblesdev","download_url":"https://codeload.github.com/mroblesdev/cifrar-descifrar-simetrico-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mroblesdev%2Fcifrar-descifrar-simetrico-php/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262693291,"owners_count":23349710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T19:26:25.141Z","updated_at":"2025-06-30T01:32:49.495Z","avatar_url":"https://github.com/mroblesdev.png","language":"PHP","funding_links":["https://www.paypal.com/paypalme/markorobles?locale.x=es_XC."],"categories":[],"sub_categories":[],"readme":"# Cifrado y descifrado simétrico de datos con OpenSSL en PHP\n\nEste proyecto consiste en una librería PHP que ofrece funciones para cifrar y descifrar datos de forma segura mediante el uso de la biblioteca OpenSSL.\n\n## Requerimientos 📋\n\n- PHP 7 o superior\n- Extensión [openssl](https://www.php.net/manual/es/book.openssl.php)\n\n## Uso 💻\n\nAgrega la librería:\n\n``` PHP\nrequire 'cifrado.php';\n```\n\nConfigura la contraseña y método de cifrado:\n\n``` PHP\n$opciones = [\n    'key' =\u003e 'ABCD-123.xyz',\n    'method' =\u003e 'aes-256-ctr'\n];\n```\n\nCifrar datos:\n\n``` PHP\n$textoPlano = \"Un texto a cifrar\";\n\ntry {\n    $textoCifrado = cifrado($textoPlano, $opciones);\n} catch (Exception $e) {\n    echo $e-\u003egetMessage();\n}\n```\n\nDescifrar datos:\n\n``` PHP\n$textoCifrado = \"..\";\n\ntry {\n    $textoPlano = descifrar($textoCifrado, $opciones);\n} catch (Exception $e) {\n    echo $e-\u003egetMessage();\n}\n```\n\n## Expresiones de Gratitud 🎁\n\n- Comenta a otros sobre este proyecto 📢\n- Invitame una cerveza 🍺 o un café ☕ [Da clic aquí](https://www.paypal.com/paypalme/markorobles?locale.x=es_XC.).\n- Da las gracias públicamente 🤓.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmroblesdev%2Fcifrar-descifrar-simetrico-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmroblesdev%2Fcifrar-descifrar-simetrico-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmroblesdev%2Fcifrar-descifrar-simetrico-php/lists"}