How can i use md5 in codeigniter




















Add a comment. Active Oldest Votes. Shahzad 2, 6 6 gold badges 22 22 silver badges 32 32 bronze badges. Charles Charles 1, 2 2 gold badges 14 14 silver badges 28 28 bronze badges. Amir Iqbal Amir Iqbal 8 8 silver badges 26 26 bronze badges. Samir Bhatt 2, 1 1 gold badge 25 25 silver badges 36 36 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.

The Overflow Blog. Does ES6 make JavaScript frameworks obsolete? Podcast Do polyglots have an edge when it comes to mastering programming Featured on Meta. The most secure way to hash at the moment is using bcrypt or pbkdf2, and combine the password with a random salt for added security. Ideally a per-user salt, even more ideally regenerated after each login, but if not possible a generic salt stored in a config file or a settings table or combine the two.

To be able to use the encrypted information you need the key, to make this automatic the system doing the decryption needs access to the key. Which means anyone with access to the system also can access the key. Which in turn makes your encryption worthless.

If you require this kind of security for your web frontends your client facing applications , create API driven applications, so you don't need to store anything in the frontend. Instead, split your application into a frontend and a backend.

The frontend contains the controllers and views. The models don't access a database, but do REST calls to the backend to retrieve the information.

The backend can be secured physically and at the network level , the API requests can be secured using request signing if possible in combination with mutual authentication. And there is no way to access information other then through the API. See more: PHP. I want to hash my passwords in codeigniter. I can't find a way around it this is my insert model. I cant decrypt it when logging in What I have tried:. Copy Code. Posted 5-Jun am Member Add a Solution.

Top Rated Most Recent. Accept Solution Reject Solution. Posted 5-Jun am Patrice T. Member 6-Jun am. Richard Deeming 6-Jun am. Member 8-Jun am. Posted Jun am Member Add your solution here. OK Paste as. Treat my content as plain text, not as HTML. Existing Members Sign in to your account.



0コメント

  • 1000 / 1000