encryption!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HSN
    Senior Member
    • May 2003
    • 113
    • 3.7.x

    encryption!

    Hello there,

    What is the best way for encrypting (and decrypting) data in Php other than using mcrypt()? Specifically, I want to encrypt URL information.

    Example:



    will be encrypted to:



    Thx...
  • absolut
    New Member
    • Jan 2005
    • 11
    • 3.0.5

    #2
    Only crypt() that is one-way string encryption (hashing)
    P.S. But what for?

    Comment

    • HSN
      Senior Member
      • May 2003
      • 113
      • 3.7.x

      #3
      Hashing is not useful!
      What I'm planning to do is:
      I have a registeration system. When a student enters, his/her ID appears in the URL to $_GET[] it and use it in different pages. I would like to encrypt this and other variables which appear in URL as a result of logging in. Using a hashing function, I need to develop a bruteforce algorithm which takes O(n) in order to manage this.
      So, you suggest me any technique?!

      Comment

      • Lats
        Senior Member
        • Mar 2002
        • 3671

        #4
        I'd suggest using sessions, much better than using ugly url's.

        Lats...

        Comment

        • Icheb
          Senior Member
          • Nov 2002
          • 1291

          #5
          Just store those information in a cookie?

          Comment

          • HSN
            Senior Member
            • May 2003
            • 113
            • 3.7.x

            #6
            I don't like using sessions!!

            I think cookies are also not very secure.

            Comment

            • Icheb
              Senior Member
              • Nov 2002
              • 1291

              #7
              If you want security you need SSL. If you don't use it, an attacker can intercept the login details when you login to your system just as well as he can intercept the data in a cookie.

              Comment

              • HSN
                Senior Member
                • May 2003
                • 113
                • 3.7.x

                #8
                How can I use the Secure Socket Layer?! I mean, how is it implemented?

                Comment

                • UK Jimbo
                  New Member
                  • Jun 2002
                  • 18

                  #9
                  Originally posted by HSN
                  How can I use the Secure Socket Layer?! I mean, how is it implemented?
                  Google for mod_ssl.

                  Cookie based sessions would do the trick for you.

                  Comment

                  widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                  Working...
                  😀
                  😂
                  🥰
                  😘
                  🤢
                  😎
                  😞
                  😡
                  👍
                  👎