Radix Posted March 26, 2016 Report Posted March 26, 2016 Greetings, I am using your software. I just need to know if theres a way to access the blesta database. It would be of real help. Please do let me know. Quote
Radix Posted March 29, 2016 Author Report Posted March 29, 2016 Yes, i needed methods also to retrieve records from the database. Anyways i got it. Thanks Quote
Radix Posted March 29, 2016 Author Report Posted March 29, 2016 Hi, Can you tell me how can i decrypt data after retrieving from database. I tried using base64_decode, but no success Quote
Michael Posted March 29, 2016 Report Posted March 29, 2016 Hi, Can you tell me how can i decrypt data after retrieving from database. I tried using base64_decode, but no success Please see: http://www.blesta.com/forums/index.php?/topic/4259-encryption-in-blesta/?p=31692 Radix 1 Quote
Radix Posted March 29, 2016 Author Report Posted March 29, 2016 Yes i saw the link. thank you very much. Actually i am trying to decrypt a password that is stored in the database and i did use your method but with error and i did see one post where it said that i cant decrypt passwords. So can you help me out to clear my doubts. Quote
Michael Posted March 29, 2016 Report Posted March 29, 2016 Yes i saw the link. thank you very much. Actually i am trying to decrypt a password that is stored in the database and i did use your method but with error and i did see one post where it said that i cant decrypt passwords. So can you help me out to clear my doubts. Why do you need to decrypt passwords? if it was my password in that database and you could read it I wouldn't trust you again. Quote
Radix Posted March 29, 2016 Author Report Posted March 29, 2016 Then how would i make an api call, where a password is required as a parameter? Should i pass it directly and system would handle the decryption or do i need to do something else? Quote
Michael Posted March 29, 2016 Report Posted March 29, 2016 Then how would i make an api call, where a password is required as a parameter? Should i pass it directly and system would handle the decryption or do i need to do something else? Have a look at Enom's module for it, but again they shouldn't use a password but a hash for APIs in my opinion. Radix 1 Quote
Radix Posted March 29, 2016 Author Report Posted March 29, 2016 When i am trying to call systemDecrypt method like the one you said AppModel::systemDecrypt($var); it gives me an error saying call to undefined function loadCrypto(). What if i try to include or load the file app_model and then trying to call the method? Quote
activa Posted March 29, 2016 Report Posted March 29, 2016 When i am trying to call systemDecrypt method like the one you said AppModel::systemDecrypt($var); it gives me an error saying call to undefined function loadCrypto(). What if i try to include or load the file app_model and then trying to call the method? won't work .. why you need to decrypt a password ? you must tell us what you need to other users can help you . if you want just to decrypt a password won't get a help . Quote
Tyson Posted March 29, 2016 Report Posted March 29, 2016 You can't decrypt user passwords in Blesta because passwords in Blesta are not encrypted. They are one-way hashes. There is no valid case where you should know someone else's password. If a user cannot login for some reason, they should change their password to something else. Michael and Radix 2 Quote
Radix Posted March 30, 2016 Author Report Posted March 30, 2016 Hi, Guys thanks for the heads up. I was not asking about encrypting or decrypting a user password. The link provided by Licensecart helped me. Yes i did read they are one way hashes. Anyways i got my solution. Your software is easy to use and understand. Great Work. Great Help. Thanks a lot!!! .... I'll keep posting if i face any other problems Michael 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.