From 887ad911749e7818b5f734afbc96b47aa2ed3e8c Mon Sep 17 00:00:00 2001 From: Arthur de Moulins Date: Thu, 4 Apr 2019 12:34:04 +0200 Subject: [PATCH] PHRAS-2505 replace ircmaxell/random-lib with paragonie/random-lib for php7.1 --- composer.json | 4 +- composer.lock | 207 ++++++++++++++++++++++++++++++++++++-------------- 2 files changed, 153 insertions(+), 58 deletions(-) diff --git a/composer.json b/composer.json index 98a77a6f1a..53e0ba6c98 100644 --- a/composer.json +++ b/composer.json @@ -78,7 +78,6 @@ "hoa/router": "~2.0", "igorw/get-in": "~1.0", "imagine/imagine": "0.6.x-dev", - "ircmaxell/random-lib": "~1.0", "jms/serializer": "~0.10", "jms/translation-bundle": "dev-rebase-2015-10-20", "justinrainbow/json-schema": "2.0.3 as 1.6.1", @@ -120,7 +119,8 @@ "alchemy/queue-bundle": "^0.1.5", "google/recaptcha": "^1.1", "facebook/graph-sdk": "^5.6", - "box/spout": "^2.7" + "box/spout": "^2.7", + "paragonie/random-lib": "^2.0" }, "require-dev": { "mikey179/vfsStream": "~1.5", diff --git a/composer.lock b/composer.lock index d9eae9b3ee..edd03dc5d3 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "adf4074eb26ea80d414430d4f7b61311", + "content-hash": "7dd755dbcbdcf15e87b4e2e8967c1314", "packages": [ { "name": "alchemy-fr/tcpdf-clone", @@ -3742,61 +3742,6 @@ ], "time": "2014-11-20T16:49:30+00:00" }, - { - "name": "ircmaxell/random-lib", - "version": "v1.2.0", - "source": { - "type": "git", - "url": "https://github.com/ircmaxell/RandomLib.git", - "reference": "e9e0204f40e49fa4419946c677eccd3fa25b8cf4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/ircmaxell/RandomLib/zipball/e9e0204f40e49fa4419946c677eccd3fa25b8cf4", - "reference": "e9e0204f40e49fa4419946c677eccd3fa25b8cf4", - "shasum": "" - }, - "require": { - "ircmaxell/security-lib": "^1.1", - "php": ">=5.3.2" - }, - "require-dev": { - "friendsofphp/php-cs-fixer": "^1.11", - "mikey179/vfsstream": "^1.6", - "phpunit/phpunit": "^4.8|^5.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.1.x-dev" - } - }, - "autoload": { - "psr-0": { - "RandomLib": "lib" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Anthony Ferrara", - "email": "ircmaxell@ircmaxell.com", - "homepage": "http://blog.ircmaxell.com" - } - ], - "description": "A Library For Generating Secure Random Numbers", - "homepage": "https://github.com/ircmaxell/RandomLib", - "keywords": [ - "cryptography", - "random", - "random-numbers", - "random-strings" - ], - "time": "2016-09-07T15:52:06+00:00" - }, { "name": "ircmaxell/security-lib", "version": "v1.1.0", @@ -4956,6 +4901,68 @@ ], "time": "2016-11-28T09:17:04+00:00" }, + { + "name": "paragonie/random-lib", + "version": "v2.0.0", + "source": { + "type": "git", + "url": "https://github.com/paragonie/RandomLib.git", + "reference": "b73a1cb8eae7a346824ccee42298046dedbf2415" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/RandomLib/zipball/b73a1cb8eae7a346824ccee42298046dedbf2415", + "reference": "b73a1cb8eae7a346824ccee42298046dedbf2415", + "shasum": "" + }, + "require": { + "ircmaxell/security-lib": "^1.1", + "paragonie/random_compat": "^2", + "paragonie/sodium_compat": "^1.3", + "php": ">=5.3.2" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^1.11", + "mikey179/vfsstream": "^1.6", + "phpunit/phpunit": "^4.8 || >=5.0.0 <5.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1.x-dev" + } + }, + "autoload": { + "psr-0": { + "RandomLib": "lib" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Anthony Ferrara", + "email": "ircmaxell@ircmaxell.com", + "homepage": "http://blog.ircmaxell.com" + }, + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com" + } + ], + "description": "A Library For Generating Secure Random Numbers", + "homepage": "https://github.com/ircmaxell/RandomLib", + "keywords": [ + "cryptography", + "random", + "random-numbers", + "random-strings" + ], + "time": "2017-10-06T23:34:21+00:00" + }, { "name": "paragonie/random_compat", "version": "v2.0.4", @@ -5004,6 +5011,88 @@ ], "time": "2016-11-07T23:38:38+00:00" }, + { + "name": "paragonie/sodium_compat", + "version": "v1.9.1", + "source": { + "type": "git", + "url": "https://github.com/paragonie/sodium_compat.git", + "reference": "87125d5b265f98c4d1b8d83a1f0726607c229421" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/sodium_compat/zipball/87125d5b265f98c4d1b8d83a1f0726607c229421", + "reference": "87125d5b265f98c4d1b8d83a1f0726607c229421", + "shasum": "" + }, + "require": { + "paragonie/random_compat": ">=1", + "php": "^5.2.4|^5.3|^5.4|^5.5|^5.6|^7|^8" + }, + "require-dev": { + "phpunit/phpunit": "^3|^4|^5" + }, + "suggest": { + "ext-libsodium": "PHP < 7.0: Better performance, password hashing (Argon2i), secure memory management (memzero), and better security.", + "ext-sodium": "PHP >= 7.0: Better performance, password hashing (Argon2i), secure memory management (memzero), and better security." + }, + "type": "library", + "autoload": { + "files": [ + "autoload.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "ISC" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com" + }, + { + "name": "Frank Denis", + "email": "jedisct1@pureftpd.org" + } + ], + "description": "Pure PHP implementation of libsodium; uses the PHP extension if it exists", + "keywords": [ + "Authentication", + "BLAKE2b", + "ChaCha20", + "ChaCha20-Poly1305", + "Chapoly", + "Curve25519", + "Ed25519", + "EdDSA", + "Edwards-curve Digital Signature Algorithm", + "Elliptic Curve Diffie-Hellman", + "Poly1305", + "Pure-PHP cryptography", + "RFC 7748", + "RFC 8032", + "Salpoly", + "Salsa20", + "X25519", + "XChaCha20-Poly1305", + "XSalsa20-Poly1305", + "Xchacha20", + "Xsalsa20", + "aead", + "cryptography", + "ecdh", + "elliptic curve", + "elliptic curve cryptography", + "encryption", + "libsodium", + "php", + "public-key cryptography", + "secret-key cryptography", + "side-channel resistant" + ], + "time": "2019-03-20T17:19:05+00:00" + }, { "name": "php-ffmpeg/php-ffmpeg", "version": "0.5.1", @@ -5766,6 +5855,11 @@ { "name": "roave/security-advisories", "version": "dev-master", + "source": { + "type": "git", + "url": "https://github.com/Roave/SecurityAdvisories.git", + "reference": "0698207bf8a9bed212fdde2d8c7cdc77085660c4" + }, "conflict": { "adodb/adodb-php": "<5.20.6", "amphp/artax": ">=2,<2.0.4|>0.7.1,<1.0.4", @@ -8342,6 +8436,7 @@ "mock", "xunit" ], + "abandoned": true, "time": "2015-10-02T06:51:40+00:00" }, {