Giter Club home page Giter Club logo

fasty's Introduction

Fasty - a fast and simple PHP framework

(Currently under heavy development)

Installation

Installing Fasty is super easy, just follow the steps bellow

composer create-project fasty/framework project_name

Or download the latest stable release (https://github.com/FastyPHP/fasty/releases) and then run

composer install

  1. Set the web servers root directory to the /Public folder
  2. Open console/command prompt and cd into the Fasty root folder
  3. Run composer install and wait until composer finishes downloading the necessary files (if don't have composer set up, you can do so by visiting this link: https://getcomposer.org/doc/00-intro.md )
  4. Set up the config.php file to match your own settings
  5. Create something awesome!

Fasty doesn't require any console work on its own but it needs it for the initial installation

Benchmarks

All of the benchmarks are done using Apaches benchmark tool called ApacheBench version 2.3 They are also done on my local machine (which isn't high spec), so the results are somewhat low

Benchmark command

ab -n 1000 -c 100 http://localhost

Machine specs

  • Processor: Intel Core i5-4210U @ 1.70GHz
  • RAM: 8 GB
  • System: 64-bit Windows 10

The actual results

  1. Fasty - 53.91 requests/second (MySQL connection, default file cache system)
  2. Laravel - 13.59 requests/second (MySQL connection, default file cache system)
  3. CakePHP - 10.83 requests/second (MySQL connection, default file cache system)

Requirements

Fasty requires the following services

  • PHP 7.1 or greater
  • MariaDB 10.1/MySQL 5.7.14 or greater

fasty's People

Contributors

champawastaken avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

fasty's Issues

Insecure Encryption

Check this out:

<?php
use Core\Classes\Crypto;
/** @global $encryptedSecret contains an encrypted secret message */

// Get the encrypted value of \x00 \x00 \x00 ... etc.
$length = mb_strlen(base64_decode($encryptedSecret), '8bit');
$null = str_repeat("\x00", $length);
$encryptedNull = Crypto::encrypt($null);

// XOR the encrypted NULL value with the secret message to decrypt it
$secretPlaintext = base64_decode($encryptedNull) ^ base64_decode($encryptedSecret);

PoC: https://3v4l.org/p2U2H


This demonstrates that the encryption is vulnerable to chosen plaintext attacks, thanks to IV reuse. It's also vulnerable to chosen-ciphertext attacks, as it's not authenticating the ciphertext.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.