B4J Question B4XCipher Question

Discussion in 'B4J Questions' started by MarkusR, Aug 12, 2018.

  1. MarkusR

    MarkusR Well-Known Member Licensed User

    is it possible that .Encrypt always generate a new byte array sequence with same given password argument?

    that would mean if me test a login password
    the compare with .Decrypt make the stored password temporary readable.
  2. Erel

    Erel Administrator Staff Member Licensed User

    Yes. It uses a random salt.
    If you decrypt it then you will get the correct value.

    It is better to use hashes for password validation.
    MarkusR likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice