Problem with encryption

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mickhael Hugo
    Junior Member
    • Apr 2017
    • 6

    Problem with encryption

    I am developing a website with the support of new users of the CRM. I'm having trouble with the password. Prompt, what method to encrypt the data, if you use the keys, what and in what order.
    Thank you in advance.
  • tarasm
    Super Moderator
    • Mar 2014
    • 573

    #2
    Authentication for cURL should be like
    PHP Code:
    curl_setopt($ch, CURLOPT_USERPWD, $userName . ':' . $password);
     curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); 
    
    Job Offers and Requests

    Comment

    • AlexAv
      EspoCRM Team
      • May 2014
      • 124

      #3
      If you need to know how to generate a password throw PHP take a look into application/Espo/Core/Utils/PasswordHash.php
      But password should be hashed in a moment when you create a new user.
      Last edited by AlexAv; 04-04-2017, 12:22 PM.

      Comment

      • Mickhael Hugo
        Junior Member
        • Apr 2017
        • 6

        #4
        Thank you
        I understood

        Comment

        • Mickhael Hugo
          Junior Member
          • Apr 2017
          • 6

          #5
          Originally posted by AlexAv
          If you need to know how to generate a password throw PHP take a look into application/Espo/Core/Utils/PasswordHash.php
          But password should be hashed in a moment when you create a new user.
          sorry, i don't understand this line " return str_replace("{0}", $salt, $this->saltFormat);" What is saltFormat?

          Comment

          Working...