Giter VIP home page Giter VIP logo

polyfill-libsodium's Introduction

Polyfill Libsodium

A simple Polyfill for giving libsodium compatibility when having sodium installed.

Build Status

The new sodium extension has been accepted and will be distributed with PHP >= 7.2.
This will have a few breaking changes:

  • No more \Sodium\ namespace. Everything must be in the global namespace.
  • The extension will be renamed to sodium.
  • \Sodium\randombytes_buf() and \Sodium\randombytes_random16() have been removed.

So the current namespaced functions will not work anymore. So we created a polyfill for this.

Reference: https://github.com/jedisct1/libsodium-php

Installation

Using Composer:

The easiest way to install is to require the polyfill-libsodium library with Composer:

composer require mollie/polyfill-libsodium

After installation of the package the bootstrap.php file will be autoloaded.

Manual installation:
Checkout or download all the files and include them manually into your project.

Include the bootstrap file in your project:

require 'vendor/mollie/polyfill-libsodium/bootstrap.php';

License

This software is licensed under the MIT License

© 2017 Mollie

polyfill-libsodium's People

Contributors

anhnhan avatar smitsel avatar

Watchers

 avatar  avatar

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.