Encryption on codeigniter 3 Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Data science time! April 2019 and salary with experience Should we burninate the [wrap] tag? The Ask Question Wizard is Live!mcrypt is deprecated, what is the alternative?Are HTTPS headers encrypted?Encrypt and decrypt a string in C#?How should I choose an authentication library for CodeIgniter?Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted (CodeIgniter + XML-RPC)How to choose an AES encryption mode (CBC ECB CTR OCB CFB)?Best way to use PHP to encrypt and decrypt passwords?Fundamental difference between Hashing and Encryption algorithmsPHP (CodeIgniter) Sessions EmptyCodeigniter decode not workingencryption not working in ajax
How widely used is the term Treppenwitz? Is it something that most Germans know?
Why did the Falcon Heavy center core fall off the ASDS OCISLY barge?
What does an IRS interview request entail when called in to verify expenses for a sole proprietor small business?
Why are Kinder Surprise Eggs illegal in the USA?
Check which numbers satisfy the condition [A*B*C = A! + B! + C!]
What's the meaning of 間時肆拾貳 at a car parking sign
2001: A Space Odyssey's use of the song "Daisy Bell" (Bicycle Built for Two); life imitates art or vice-versa?
Is the Standard Deduction better than Itemized when both are the same amount?
String `!23` is replaced with `docker` in command line
Echoing a tail command produces unexpected output?
What is Wonderstone and are there any references to it pre-1982?
Identifying polygons that intersect with another layer using QGIS?
Why are there no cargo aircraft with "flying wing" design?
What is Arya's weapon design?
Generate an RGB colour grid
How to deal with a team lead who never gives me credit?
What is the logic behind the Maharil's explanation of why we don't say שעשה ניסים on Pesach?
Fundamental Solution of the Pell Equation
How do I stop a creek from eroding my steep embankment?
Why did the IBM 650 use bi-quinary?
51k Euros annually for a family of 4 in Berlin: Is it enough?
Why was the term "discrete" used in discrete logarithm?
In predicate logic, does existential quantification (∃) include universal quantification (∀), i.e. can 'some' imply 'all'?
Book where humans were engineered with genes from animal species to survive hostile planets
Encryption on codeigniter 3
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Data science time! April 2019 and salary with experience
Should we burninate the [wrap] tag?
The Ask Question Wizard is Live!mcrypt is deprecated, what is the alternative?Are HTTPS headers encrypted?Encrypt and decrypt a string in C#?How should I choose an authentication library for CodeIgniter?Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted (CodeIgniter + XML-RPC)How to choose an AES encryption mode (CBC ECB CTR OCB CFB)?Best way to use PHP to encrypt and decrypt passwords?Fundamental difference between Hashing and Encryption algorithmsPHP (CodeIgniter) Sessions EmptyCodeigniter decode not workingencryption not working in ajax
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I Used libraries Encrypt on Codeigniter 2.2.6 but when i change in CodeIgniter 3.1.10 , for php 7.2, i need to use Encryption and i can't use encrypt.
When i want do login , the page refresh itself.. why ? What is wrong?
Function login()
$this->obj->load->library('encryption');
$username = $this->obj->input->post('username');
$password = $this->obj->input->post('password');
$query = $this->obj->db->get('userd');
$login_result = FALSE;
foreach($query->result() as $row)
if($row->access== 1 && $row->username == $username && $this->obj->encryption->decrypt("$row->password") == $password)
$login_result = TRUE;
$user_id = $row->id;
$user_name = $row->cognome." ".$row->nome;
if ($login_result)
$credentials = array('user_id' => $user_id, 'logged_in' => $login_result);
$this->obj->db->set("ip",$this->obj->input->ip_address());
$this->obj->db->where("id",$user_id);
$this->obj->db->update("userd");
$this->obj->session->set_userdata($credentials);
return $login_result;
php codeigniter encryption codeigniter-3 mcrypt
add a comment |
I Used libraries Encrypt on Codeigniter 2.2.6 but when i change in CodeIgniter 3.1.10 , for php 7.2, i need to use Encryption and i can't use encrypt.
When i want do login , the page refresh itself.. why ? What is wrong?
Function login()
$this->obj->load->library('encryption');
$username = $this->obj->input->post('username');
$password = $this->obj->input->post('password');
$query = $this->obj->db->get('userd');
$login_result = FALSE;
foreach($query->result() as $row)
if($row->access== 1 && $row->username == $username && $this->obj->encryption->decrypt("$row->password") == $password)
$login_result = TRUE;
$user_id = $row->id;
$user_name = $row->cognome." ".$row->nome;
if ($login_result)
$credentials = array('user_id' => $user_id, 'logged_in' => $login_result);
$this->obj->db->set("ip",$this->obj->input->ip_address());
$this->obj->db->where("id",$user_id);
$this->obj->db->update("userd");
$this->obj->session->set_userdata($credentials);
return $login_result;
php codeigniter encryption codeigniter-3 mcrypt
Possible duplicate of mcrypt is deprecated, what is the alternative?
– miken32
Mar 8 at 18:06
please read: codeigniter.com/userguide3/libraries/encryption.html and consider using something like CI-ion-auth for login github.com/benedmunds/CodeIgniter-Ion-Auth
– Vickel
Mar 8 at 18:56
add a comment |
I Used libraries Encrypt on Codeigniter 2.2.6 but when i change in CodeIgniter 3.1.10 , for php 7.2, i need to use Encryption and i can't use encrypt.
When i want do login , the page refresh itself.. why ? What is wrong?
Function login()
$this->obj->load->library('encryption');
$username = $this->obj->input->post('username');
$password = $this->obj->input->post('password');
$query = $this->obj->db->get('userd');
$login_result = FALSE;
foreach($query->result() as $row)
if($row->access== 1 && $row->username == $username && $this->obj->encryption->decrypt("$row->password") == $password)
$login_result = TRUE;
$user_id = $row->id;
$user_name = $row->cognome." ".$row->nome;
if ($login_result)
$credentials = array('user_id' => $user_id, 'logged_in' => $login_result);
$this->obj->db->set("ip",$this->obj->input->ip_address());
$this->obj->db->where("id",$user_id);
$this->obj->db->update("userd");
$this->obj->session->set_userdata($credentials);
return $login_result;
php codeigniter encryption codeigniter-3 mcrypt
I Used libraries Encrypt on Codeigniter 2.2.6 but when i change in CodeIgniter 3.1.10 , for php 7.2, i need to use Encryption and i can't use encrypt.
When i want do login , the page refresh itself.. why ? What is wrong?
Function login()
$this->obj->load->library('encryption');
$username = $this->obj->input->post('username');
$password = $this->obj->input->post('password');
$query = $this->obj->db->get('userd');
$login_result = FALSE;
foreach($query->result() as $row)
if($row->access== 1 && $row->username == $username && $this->obj->encryption->decrypt("$row->password") == $password)
$login_result = TRUE;
$user_id = $row->id;
$user_name = $row->cognome." ".$row->nome;
if ($login_result)
$credentials = array('user_id' => $user_id, 'logged_in' => $login_result);
$this->obj->db->set("ip",$this->obj->input->ip_address());
$this->obj->db->where("id",$user_id);
$this->obj->db->update("userd");
$this->obj->session->set_userdata($credentials);
return $login_result;
php codeigniter encryption codeigniter-3 mcrypt
php codeigniter encryption codeigniter-3 mcrypt
edited Mar 8 at 18:46
Phantom Moore
asked Mar 8 at 17:49
Phantom MoorePhantom Moore
115
115
Possible duplicate of mcrypt is deprecated, what is the alternative?
– miken32
Mar 8 at 18:06
please read: codeigniter.com/userguide3/libraries/encryption.html and consider using something like CI-ion-auth for login github.com/benedmunds/CodeIgniter-Ion-Auth
– Vickel
Mar 8 at 18:56
add a comment |
Possible duplicate of mcrypt is deprecated, what is the alternative?
– miken32
Mar 8 at 18:06
please read: codeigniter.com/userguide3/libraries/encryption.html and consider using something like CI-ion-auth for login github.com/benedmunds/CodeIgniter-Ion-Auth
– Vickel
Mar 8 at 18:56
Possible duplicate of mcrypt is deprecated, what is the alternative?
– miken32
Mar 8 at 18:06
Possible duplicate of mcrypt is deprecated, what is the alternative?
– miken32
Mar 8 at 18:06
please read: codeigniter.com/userguide3/libraries/encryption.html and consider using something like CI-ion-auth for login github.com/benedmunds/CodeIgniter-Ion-Auth
– Vickel
Mar 8 at 18:56
please read: codeigniter.com/userguide3/libraries/encryption.html and consider using something like CI-ion-auth for login github.com/benedmunds/CodeIgniter-Ion-Auth
– Vickel
Mar 8 at 18:56
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55068453%2fencryption-on-codeigniter-3%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55068453%2fencryption-on-codeigniter-3%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Possible duplicate of mcrypt is deprecated, what is the alternative?
– miken32
Mar 8 at 18:06
please read: codeigniter.com/userguide3/libraries/encryption.html and consider using something like CI-ion-auth for login github.com/benedmunds/CodeIgniter-Ion-Auth
– Vickel
Mar 8 at 18:56