Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Crypt Class - minimum value length?
  • Hi,

    I'm just wondering if there's a minimum value length required to use Crypt::encode and Crypt::decode

    Apologies if this is covered in the documentation, only I couldn't find a
    reference to it.


  • HarroHarro
    Accepted Answer
    No.

    $ oil console
    Fuel 1.9-dev - PHP 7.1.12 (cli) (Nov 22 2017 06:09:34) [Linux]
    >>> $x = '';
    >>> $y = Crypt::encode($x)
    >>> $z = Crypt::decode($y)
    >>> echo $z
    >>> 

    So even an empty string is fine.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion