Hi Jakub,

they should not be accessible from anywhere. It possibly slipped
through reviews.
The new hash dependencies are thought to be runtime dependencies. You
should never ever need them in your classpath while compiling, only
while testing and running the actual application.

Does that help?

- Ben

Am Do., 12. Okt. 2023 um 18:57 Uhr schrieb Jakub Herkel <[email protected]>:
>
> One correction, I meant a signature of method fromString was changed from
> Hash fromString(String string);
> to
>  public BCryptHash fromString(String string);
>
> Jakub
>
> On Wed, Oct 11, 2023 at 11:48 AM Jakub Herkel <[email protected]> wrote:
> >
> > Hello,
> >
> > I would like to ask if there is a way how to decode hash parameters
> > from a hash string. For example for bcrypt. I know that I can use
> > BCryptProvider and there is a method fromString that returns a
> > BCryptHash class. But the BCryphHash isn't public class. Also
> > BCryptProvider changes a signature of method
> > Hash fromString(String string);
> > to
> >  public BCryptHash generate(HashRequest hashRequest)
> >
> > So it exports non accessible class via public method and for example
> > this code cannot be compiled :
> >         BCryptProvider fff = new BCryptProvider();
> >         var hash2 = fff.fromString("aaa");
> >         System.out.println(hash2.toString());
> >
> > Is there any technical reason why the BCryptHash class isn't
> > accessible from anywhere?
> >
> > best regards
> >
> > Jakub Herkel

Reply via email to