Jump to content

Store Password In Databse Crypted An Use It In Php ?


Blesta Addons

Recommended Posts

one of the best thing in blesta v3 , is the way they manage the crypted field (passwords) .

 

storing field with the MD5 or other Hashing systems/algorithmes is usefful , but blesta can retrieve the crypted password and use them in the système as plain text again transparency . i love this way ...

 

what i want to ask now , how blesta do this ?

 

blesta use a function to decrypt the passwords/crypted fields and other function to decode/decrypt the password ? i beleive they can not decode the MD5 password, so i supposed that they use it own cyption/decryption systèm .

 

 

can the blesta dev share some tips or way to achieve this ? or is a secret of the work :) !!

 

 

Link to comment
Share on other sites

Blesta uses different encryption and hashing algorithms for different purposes. Admin and client passwords are stored using bcrypt, computed from an HMAC-SHA-256 hash of the password. This is a one way, algorithm that is extremely difficult to brute force. User passwords are not reversible.

 

Modules can store some or all of their meta data encrypted, and encryption is used throughout the system to securely store data that can be decrypted like credit card numbers, service meta data and more. I believe this is done through AES, and in the case of credit cards additionally an RSA public/private key pair.

 

Cody can elaborate more on all of this and correct any errors in what I just said. :)

Link to comment
Share on other sites

Blesta uses different encryption and hashing algorithms for different purposes. Admin and client passwords are stored using bcrypt, computed from an HMAC-SHA-256 hash of the password. This is a one way, algorithm that is extremely difficult to brute force. User passwords are not reversible.

 

Modules can store some or all of their meta data encrypted, and encryption is used throughout the system to securely store data that can be decrypted like credit card numbers, service meta data and more. I believe this is done through AES, and in the case of credit cards additionally an RSA public/private key pair.

 

Cody can elaborate more on all of this and correct any errors in what I just said. :)

 

Nothing else to say.

 

http://source-docs.blesta.com/class-AppModel.html#_systemEncrypt

http://source-docs.blesta.com/class-AppModel.html#_systemDecrypt

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...