CodeIgniter Forums
Encrypt-need help! not solved - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Encrypt-need help! not solved (/showthread.php?tid=6936)



Encrypt-need help! not solved - El Forum - 03-18-2008

[eluser]nirbhab[/eluser]
Hello everybody,

Code:
$string = "Keyword-1-:Keyword-2-:Keyword-3-:Keyword-4-:search"
when i encrypt this string with mycrpt enabled encryption class of CI i get
Quote:b89EoikESMJtS3gt2JbBWmRVPWS6GXdavM8yRfRnlgOLSmG
RQESUPKZc3FHpLyMSiQCWcStackIX8otsQy4uYdLuzSIbNrst4tWGCFn
ykhYRNqm1tKbByDadSACNrIDES9XWOn74aiv4/74yLEj/
FjVUNqrnjKjiXCNsKZyQryIAez9HFuHlj8ftEiEb2YYjrPMglO+xeQ/OWsiyjKKScA==

means too long string.


MY REQUIREMETS
I need something [a-z][0-9] characters
length less than 50 characters.
no special characters.
need to decrypt also, please don't suggest MD5 or SHA1 or any other hashing algorithms.

External library would be great. but my requirements should be met, at any how.

can anybody help? please.....

If i am doing un-feasible, please tell, need suggestions


Encrypt-need help! not solved - El Forum - 03-18-2008

[eluser]Pygon[/eluser]
Good luck. Encryption just doesn't work that way (maximum length).

Your alternative is a reversible obfuscation if you're not sending sensitive data.


Encrypt-need help! not solved - El Forum - 03-18-2008

[eluser]nirbhab[/eluser]
Thanks for reply
i was waiting desperately,

According to you i must find some other alternative?
as the encryption doesn't work after certain length....

once again thanks for replying..