PHP Classes

Simple PHP Secure REST API: Create a secure REST APIs using on RSA keys

Recommend this page to a friend!
  Info   View files Example   View files View files (17)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 228 This week: 1All time: 8,173 This week: 560Up
Version License PHP version Categories
simple-secrest 1.1GNU Lesser Genera...5PHP 5, Cryptography, Libraries, Web s...
Description 

Author

This package can create secure REST APIs using RSA keys.

It provides classes to implement REST API clients and servers that use RSA-based cryptographic keys to securely exchange request and response information.

Cryptographic keys are created and exchanged between the client and the server and are only valid for a limited period.

Innovation Award
PHP Programming Innovation award winner
October 2021
Winner
REST APIs are a common way for an individual or a company to provide software-based services to other individuals or companies without sharing their software code.

Web services exchange information over the Internet. Security is fundamental to avoid that other people may have access to the service's private information.

This package provides a solution that increases the security level of the information exchanged with Web service REST APIs by using RSA public and private keys.

This way, only the legitimate Web service users with private keys can encrypt and decrypt the information exchanged with the API server.

Manuel Lemos
Picture of Ricardo Naranjo Faccini
  Performance   Level  
Name: Ricardo Naranjo Faccini <contact>
Classes: 1 package by
Country: Colombia Colombia
Age: 53
All time rank: 406228 in Colombia Colombia
Week rank: 411 Up2 in Colombia Colombia Up
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

Example

<?php
/*! \file servidor/servicio.php
Este software fué realizado por el Ing. Ricardo Naranjo
Faccini, M.Sc. para Skina IT Solutions E.U. fábrica de
software colombiana radicada en Bogotá.

Skina IT Solutions E.U.
https://www.skinait.com
soporte@skinait.com

Copyright 2021

Este archivo es parte de la librería SimpleSecREST.
Contiene el ejemplo de uso de la librería desde el punto de
vista del servidor REST.
----------------------------------------
This file is part of Simple-SecREST.

Simple-SecREST is free software: you can redistribute it
and/or modify it under the terms of the GNU Lesser General
Public License as published by the Free Software Foundation,
either version 3 of the License, or (at your option) any
later version.

Simple-SecREST is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU Lesser General Public License for more
details.

You should have received a copy of the GNU Lesser General
Public License along with Simple-SecREST. If not, see
<https://www.gnu.org/licenses/>.
***********************************************************/
error_reporting(E_ALL);
ini_set('display_errors', 1);
setlocale(LC_ALL, 'es_ES.UTF-8', 'es_CO', 'es', 'es_ES@euro', 'es_ES');
date_default_timezone_set('America/Bogota');

require_once(
"lib/mi_servicio.php");
require_once(
"lib/herramientas.php");

$depurando = false;
$servidor = new mi_servicio(__DIR__, null, 300, $depurando);

$lista_blanca['metodo'] = array( "existen_procesos_asociados"
                              
// , "servicio_2"
                               // , "servicio_3"
                               // , "servicio_4"
                               // , "servicio_5"
                              
);
$servidor->establecer_lista_blanca($lista_blanca);

$respuesta = $servidor->atender($_REQUEST);

print
$respuesta;
?>


Details

Simple-SecREST

Php framework oriented to create secure REST connections based on RSA keys.

See https://youtu.be/DCHEvS-1N24 <- Tutorial en español (spanish tutorial)

See 2021.10.20-Tutorial_Simple-SecREST-en.pdf <- english tutorial


  Files folder image Files  
File Role Description
Accessible without login Plain text file 2021.10.20-Tutoria...mple-SecREST-en.pdf Doc. English tutorial presentation
Accessible without login Plain text file 2021.10.20-Tutorial_Simple-SecREST.pdf Data Auxiliary data
Plain text file cifrado_RSA.php Class Class source
Accessible without login Plain text file cliente.php Example Example script
Accessible without login Plain text file COPYING.LESSER Data Auxiliary data
Accessible without login Plain text file gpl-3.0.txt Doc. Documentation
Accessible without login Plain text file herramientas.php Example Example script
Accessible without login Plain text file lgpl-3.0.txt Doc. Documentation
Accessible without login Plain text file LICENSE Lic. License text
Plain text file mi_cliente.php Class Class source
Plain text file mi_servicio.php Class Class source
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file refman.pdf Data Auxiliary data
Accessible without login Plain text file servicio.php Example Example script
Plain text file Simple-SecREST.php Class Class source
Accessible without login Plain text file tags Data Auxiliary data
Accessible without login Plain text file TODO Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:228
This week:1
All time:8,173
This week:560Up