Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Crypt Class - minimum value length?
Colt
December 2017
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.
Harro
December 2017
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.
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
December 2017