Web Analytics Made Easy -
StatCounter True RC4 Encryption? - CodingForum

Announcement

Collapse
No announcement yet.

True RC4 Encryption?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • True RC4 Encryption?

    Hello,

    I made a program that generates a key and it uses a RC4 Encryption Class. Anyways, I was converting my program to PHP so it could generate the key from my website... I got everything fixed and running except I found that I dont have a RC4 Encryption & Decryption function... Anyone know how I would encrypt & decrypt a string using RC4 in php?

    Thank you,
    -Jason

  • #2
    I think you need to use the mcrypt extension for this [de|en]cryption algorithm. Have a look at the manual page at http://de.php.net/mcrypt where it says:

    If you linked against libmcrypt 2.4.x or higher, the following additional block algorithms are supported: CAST, LOKI97, RIJNDAEL, SAFERPLUS, SERPENT and the following stream ciphers: ENIGMA (crypt), PANAMA, RC4 and WAKE. With libmcrypt 2.4.x or higher another cipher mode is also available; nOFB.
    hth
    De gustibus non est disputandum.

    Comment


    • #3
      Hmmm,

      I downloaded a RC4 Class from http://www.devhome.org/php/tutorials/rc4crypt.html and I am having two differant results...

      I use the same Key and the Same Data but I get differant Results...

      KEY = 'JASON'
      DATA = 'JASON'

      RESULT FROM PHP: %03%0B%FB%F5%0C
      RESULT FROM PROGRAM: تûُ

      Can anyone help me?

      Thank you,
      -Jason

      Comment


      • #4
        Hmh... as this is a specific problem with a class, I'd think your best bet is to ask the author if the bug is either in his class or your program.
        De gustibus non est disputandum.

        Comment


        • #5
          If I can't use RC4 correctly, I'm also up for suggestions of another algorithm that I can use in both VB and PHP.

          Thank you Once Again,
          -Jason

          Comment


          • #6
            MD5 is built into PHP's core functions, and in newer versions also SHA.
            De gustibus non est disputandum.

            Comment

            Working...
            X