Learn about Centmin Mod LEMP Stack today
Become a Member

PHP PHP 7.2 Cryptography

Discussion in 'Nginx and PHP-FPM news & discussions' started by Jimmy, Feb 12, 2017.

  1. Jimmy

    Jimmy Premium Member Premium Member

    1,114
    247
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +596
    Local Time:
    4:50 AM
    1.13.x
    MariaDB 10.1.x
    • Informative Informative x 1
  2. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    6:50 PM
    Nginx 1.13.x
    MariaDB 5.5
    nice thanks for the heads up :)

    believe it's related to PHP: rfc:libsodium replacing libmcrypt ?
     
  3. Jimmy

    Jimmy Premium Member Premium Member

    1,114
    247
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +596
    Local Time:
    4:50 AM
    1.13.x
    MariaDB 10.1.x
    I think so. I just caught the tweet on twitter. Figured I'd post it.
     
    • Like Like x 1
  4. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    6:50 PM
    Nginx 1.13.x
    MariaDB 5.5
    current libsodium php extension implementation https://paragonie.com/book/pecl-libsodium and PECL :: Package :: libsodium

    https://paragonie.com/book/pecl-libsodium/read/00-intro.md
     
    • Like Like x 1
  5. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    6:50 PM
    Nginx 1.13.x
    MariaDB 5.5
  6. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    6:50 PM
    Nginx 1.13.x
    MariaDB 5.5
    Installing current implementation of libsodium php extension PECL :: Package :: libsodium involves

    Code (Text):
    yum list libsodium libsodium-devel --disableplugin=priorities -q | tr -s ''
    Available Packages
    libsodium.x86_64                           1.0.5-1.el7                      epel
    libsodium-devel.x86_64                     1.0.5-1.el7                      epel

    Code (Text):
    yum -y install libsodium libsodium-devel


    Code (Text):
    pecl install libsodium
    echo "extension=libsodium.so" > /etc/centminmod/php.d/libsodium.ini
    nprestart
    


    Looks like yum EPEL repo's libsodium is dated 1.0.5 while 1.0.11 is newest Releases · jedisct1/libsodium · GitHub
    Code (Text):
    php --ri libsodium
    
    libsodium
    
    libsodium support => enabled
    libsodium compiled version => 1.0.6
    libsodium headers version => 1.0.5
    libsodium library version => 1.0.5

    Code (Text):
    php --ini
    Configuration File (php.ini) Path: /usr/local/lib
    Loaded Configuration File:         /usr/local/lib/php.ini
    Scan for additional .ini files in: /etc/centminmod/php.d
    Additional .ini files parsed:      /etc/centminmod/php.d/a_customphp.ini,
    /etc/centminmod/php.d/curlcainfo.ini,
    /etc/centminmod/php.d/ffmpeg.ini,
    /etc/centminmod/php.d/geoip.ini,
    /etc/centminmod/php.d/igbinary.ini,
    /etc/centminmod/php.d/imagick.ini,
    /etc/centminmod/php.d/libsodium.ini,
    /etc/centminmod/php.d/mailparse.ini,
    /etc/centminmod/php.d/memcache.ini,
    /etc/centminmod/php.d/memcached.ini,
    /etc/centminmod/php.d/redis.ini,
    /etc/centminmod/php.d/zendopcache.ini,
    /etc/centminmod/php.d/zzendopcache.ini
    


    Code (Text):
    php -v
    PHP 7.1.1 (cli) (built: Feb  4 2017 10:32:11) ( NTS )
    Copyright (c) 1997-2017 The PHP Group
    Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
        with Zend OPcache v7.1.1, Copyright (c) 1999-2017, by Zend Technologies
    


    Code (Text):
    php -m
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    exif
    filter
    ftp
    gd
    geoip
    gettext
    gmp
    hash
    iconv
    igbinary
    imagick
    imap
    intl
    json
    ldap
    libsodium
    libxml
    mailparse
    mbstring
    mcrypt
    memcache
    memcached
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    pspell
    readline
    redis
    Reflection
    session
    shmop
    SimpleXML
    snmp
    soap
    sockets
    SPL
    sqlite3
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    tokenizer
    xml
    xmlreader
    xmlrpc
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache
    
     
    Last edited: Feb 12, 2017
    • Informative Informative x 2