-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep getting exception error #11
Comments
It means you're not invoking The entire point of |
So in such case it should be like this right If am correct |
Not sure if it makes sense to use it like this... I don't think you gain anything here. |
It probably helps if you understand the problem being solved here. Take a look at this code: <?php
$secret = bin2hex(random_bytes(32)); // SECRET
function doSomething(string $secret)
{
throw new Exception("It failed :'(");
}
doSomething($secret); This produces the following stack trace:
Which leaks our The purpose of What you will do is instantiate it |
Yes I know... Switching off error output to browser will also prevent this... But I don't want to do that... The problem is that... When am trying to decrypt the cypertext I passed it like this... Symmetric::decrypt(HiddenString(STRING DATA), $key); But I keep getting the error again... And again... This HiddenString object cannot be inlined as a string.... Once I set the disableInline to true on the HiddenString Constructor everything works fine without errors... In the previous version too, there were no such errors. It's the new version that keeps giving this error... |
I had the exact same issue when I upgraded halite to 4.8.0 and hidden-string was updated to 2.0.0. Downgrading to 4.6.0 and 1.1.0 respectively solved the issue, so there is something wrong on halite Symmetric::decrypt from version 4.8.0 onwards |
The definition of
The result of |
Thanks for the explanation! It might be helpful to add a note about this to https://github.com/paragonie/halite/blob/master/doc/Basic.md, for example:
|
I keep getting exception error when using hidden string with halite.
The error was
This HiddenString object cannot be inlined as a string.
Am pasiing the cypher directly to halite and its showing that error
What does this mean and how to correct this...
The text was updated successfully, but these errors were encountered: