CodeIgniter Forums
[SOLVED]EnCryPtioN ProbLeM! - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: [SOLVED]EnCryPtioN ProbLeM! (/showthread.php?tid=27004)

Pages: 1 2


[SOLVED]EnCryPtioN ProbLeM! - El Forum - 01-29-2010

[eluser]husni[/eluser]
is there any simple encryption coding??


[SOLVED]EnCryPtioN ProbLeM! - El Forum - 01-29-2010

[eluser]Rob Gordijn[/eluser]
the manual for simple to use encryption Smile
http://ellislab.com/codeigniter/user-guide/libraries/encryption.html

[edit]
I screwed up the uri


[SOLVED]EnCryPtioN ProbLeM! - El Forum - 01-29-2010

[eluser]husni[/eluser]
[quote author="Rob Gordijn" date="1264774733"]the manual for simple to use encryption Smile
[email=http://ellislab.com/codeigniter/user-guide/libraries/encryption.html]http://ellislab.com/codeigniter/user-guide/libraries/encryption.html[/email][/quote]

i followed the tutorial..
but i got error..
what is the function of encryption key??
and where should i put those codes??


[SOLVED]EnCryPtioN ProbLeM! - El Forum - 01-29-2010

[eluser]Rob Gordijn[/eluser]
ok,

- what kind of error did you get? (show source also)
- what do want to do exactly?

.o/


[SOLVED]EnCryPtioN ProbLeM! - El Forum - 01-29-2010

[eluser]husni[/eluser]
[quote author="Rob Gordijn" date="1264775096"]ok,

- what kind of error did you get? (show source also)
- what do want to do exactly?

.o/[/quote]

1) i want to pass the encrypted variable through uri segment..
how can i do that?

2) where should i encypt the variable? in the controller or view?


[SOLVED]EnCryPtioN ProbLeM! - El Forum - 01-29-2010

[eluser]Rob Gordijn[/eluser]
I would not encourage to send encrypted strings via the uri, but anyway, when you created an encrypted string, you can make a link (anchor) to pass it on.

Where to encrypt? Preferable in a model, so you can reuse it Smile


[SOLVED]EnCryPtioN ProbLeM! - El Forum - 01-29-2010

[eluser]husni[/eluser]
[quote author="Rob Gordijn" date="1264775547"]I would not encourage to send encrypted strings via the uri, but anyway, when you created an encrypted string, you can make a link (anchor) to pass it on.

Where to encrypt? Preferable in a model, so you can reuse it Smile[/quote]

when i use anchor to pass it..the value in the anchor also contain encrypted variable so it still go through uri..so how?


[SOLVED]EnCryPtioN ProbLeM! - El Forum - 01-29-2010

[eluser]husni[/eluser]
Quote:An Error Was Encountered

The URI you submitted has disallowed characters.
got this error..huhu


[SOLVED]EnCryPtioN ProbLeM! - El Forum - 01-29-2010

[eluser]Rob Gordijn[/eluser]
like I said, do not pass encryption in the uri Smile

but you figured out how to use encryption and pass it on to the uri.
(try to store it in a database, session, cookie, email, whatever the purpose is)

got more problems?


[SOLVED]EnCryPtioN ProbLeM! - El Forum - 01-29-2010

[eluser]husni[/eluser]
[quote author="Rob Gordijn" date="1264776909"]like I said, do not pass encryption in the uri Smile

but you figured out how to use encryption and pass it on to the uri.
(try to store it in a database, session, cookie, email, whatever the purpose is)

got more problems?[/quote]

huhu sorry..
can you give me the sample of the code..or any link on the internet that have some samples??
i don't really see what i need to do actually..