Announcement

Collapse
No announcement yet.

What encryption is used to generate passwords?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • dabasystem
    replied
    Thank you very much! It has worked I attach code to help other people in my situation!

    /* includes librerías nativas ESPO */
    require_once('/'.$_SERVER["DOCUMENT_ROOT"]."/application/Espo/Core/Utils/PasswordHash.php");
    require_once('/'.$_SERVER["DOCUMENT_ROOT"]."/application/Espo/Core/Utils/Util.php");
    require_once('/'.$_SERVER["DOCUMENT_ROOT"]."/application/Espo/Core/Exceptions/InternalServerError.php");

    require_once('/'.$_SERVER["DOCUMENT_ROOT"]."/application/Espo/Core/Exceptions/Error.php");
    require_once('/'.$_SERVER["DOCUMENT_ROOT"]."/application/Espo/Core/Utils/Config.php");
    require_once('/'.$_SERVER["DOCUMENT_ROOT"]."/application/Espo/Core/Utils/File/Manager.php");
    require_once('/'.$_SERVER["DOCUMENT_ROOT"]."/application/Espo/Core/Utils/File/Permission.php");

    /* inicializamos objetos */
    $fileM = new \Espo\Core\Utils\File\Manager();
    $config = new \Espo\Core\Utils\Config($fileM);
    $passwordHash = new \Espo\Core\Utils\PasswordHash($config);

    /* encriptamos */
    echo $passwordHash->hash("uno",true);

    Leave a comment:


  • tanya
    replied


    Leave a comment:


  • dabasystem
    replied
    Directly in the database. I do this in several aspects because, for safety reasons API causes me problems.

    Leave a comment:


  • tanya
    replied
    Hello,
    how do you want to create a user? (with API or how?)

    Leave a comment:


  • dabasystem
    started a topic What encryption is used to generate passwords?

    What encryption is used to generate passwords?

    Hello!
    I would need to be able to generate passwords, I want to make a registry plugin but I can not see how to generate a password with the same encryption ... Is there any way to do it?

    Thank you so much
Working...
X