ParagonIE_Sodium_Core32_BLAKE2b::stringToSplFixedArray

Advertisement

Summery Summery

Convert a string into an SplFixedArray of integers

Syntax Syntax

ParagonIE_Sodium_Core32_BLAKE2b::stringToSplFixedArray( string $str = '' )

Parameters Parameters

$str

(string) (Optional)

Default value: ''

Return Return

(SplFixedArray)

Source Source

File: wp-includes/sodium_compat/src/Core32/BLAKE2b.php

    public static function stringToSplFixedArray($str = '')
    {
        $values = unpack('C*', $str);
        return SplFixedArray::fromArray(array_values($values));
    }

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.