Results 1 to 11 of 11

Thread: Encryption

  1. #1
    Join Date
    May 2002
    Location
    Klate
    Posts
    91
    Rep Power
    214

    Encryption

    Saya ada satu soalan. Sapa kat sini yang tahu macam mana nak tulis skrip untuk encrypt dan decrypt data. Kalau boleh, saya nakkan skrip tu. Kalau sesiapa kat sini ada skrip tu, tolong bagi kat saya, okay? Saya nakkan skrip yang dapat encrypt data dengan menggunakan kata kunci

  2. #2
    Join Date
    Jul 2001
    Location
    KL, Malaysia
    Posts
    277
    Rep Power
    227

  3. #3
    Join Date
    May 2002
    Location
    Klate
    Posts
    91
    Rep Power
    214
    But I want something free. I need to pay for ASPEncrypt and I hate that... Anybody here has the idea on how to write an encryption code???
    PHP Code:
    <?php echo "PHP is a language?"?>

  4. #4
    Join Date
    Jan 2002
    Location
    SoObHanG JhaYa
    Posts
    501
    Rep Power
    227
    If people give a good service to us, do not hate to pay. Try this http://javascript.internet.com/passwords/ , This one is free so I think you will not hate it. If you still not satisfied, Log to http://www.google.com and type "free javascript password encryption". Maybe you'll find something there. =)
    <form name="jump">
    <select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" style="border:1px #393F31 solid;color:#393F31;font:10px Verdana;font-weight:bold;" >
    <option value="0" style="background: #9CC8FE" selected>*SELECT-LINKS</option>
    <option value="http://www.gengturbo.org/" style="background: #FF0000">GENGTURBO</option>
    <option value="http://www.phixelgrafix.com/" target="new" style="background: #C6D607">PHIXELGRAFIX</option>
    <option value="http://dailydigital.phixelgrafix.com/" style="background: #FCBC45">OLD-BLOG</option>
    <option value="http://www.mesrahosting.net/" style="background: #FF99CC">WEBHOSTING</option>
    </select>
    </form>

  5. #5
    Join Date
    Feb 2002
    Location
    Kuala Lumpur
    Posts
    39
    Rep Power
    0
    yup ben, i cant help but shout out loud that i couldnt agree more with you. you want good stuff, well pal, you gotta pay for it. i wouldnt want to bust my head for a couple of sleepsless weeks preparing a good script merely to give it away..... maybe im not exactly a philantrophist, mmmm...... why am i getting emotional?

  6. #6
    Join Date
    Mar 2002
    Posts
    13
    Rep Power
    0

    RC4

    here is free RC4 encryption:

    <%
    '::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::
    '::: :::
    '::: This script performs 'RC4' Stream Encryption :::
    '::: (Based on what is widely thought to be RSA's RC4 :::
    '::: algorithm. It produces output streams that are identical :::
    '::: to the commercial products) :::
    '::: :::
    '::: This script is Copyright 1999 by Mike Shaffer :::
    '::: ALL RIGHTS RESERVED WORLDWIDE :::
    '::: :::
    '::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::


    Dim sbox(255)
    Dim key(255)


    Sub RC4Initialize(strPwd)
    '::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::
    '::: This routine called by EnDeCrypt function. Initializes the :::
    '::: sbox and the key array) :::
    '::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::

    dim tempSwap
    dim a
    dim b

    intLength = len(strPwd)
    For a = 0 To 255
    key(a) = asc(mid(strpwd, (a mod intLength)+1, 1))
    sbox(a) = a
    next

    b = 0
    For a = 0 To 255
    b = (b + sbox(a) + key(a)) Mod 256
    tempSwap = sbox(a)
    sbox(a) = sbox(b)
    sbox(b) = tempSwap
    Next

    End Sub

    Function EnDeCrypt(plaintxt, psw)
    '::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::
    '::: This routine does all the work. Call it both to ENcrypt :::
    '::: and to DEcrypt your data. :::
    '::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::

    dim temp
    dim a
    dim i
    dim j
    dim k
    dim cipherby
    dim cipher

    i = 0
    j = 0

    RC4Initialize psw

    For a = 1 To Len(plaintxt)
    i = (i + 1) Mod 256
    j = (j + sbox(i)) Mod 256
    temp = sbox(i)
    sbox(i) = sbox(j)
    sbox(j) = temp

    k = sbox((sbox(i) + sbox(j)) Mod 256)

    cipherby = Asc(Mid(plaintxt, a, 1)) Xor k
    cipher = cipher & Chr(cipherby)
    Next

    EnDeCrypt = cipher
    ' remove quotes
    EnDeCrypt = replace(EnDeCrypt,"'","''")
    End Function


    %>

    you can save it in one file and include in the script where you want to perform the encryption. you should also select a key to encrypt and decrypt the plaintext. finally, you pass the variable that you want to encrypt/decrypt along with the key to EnDeCrypt function.

  7. #7
    Join Date
    Aug 2001
    Posts
    43
    Rep Power
    0
    md5 encryption cuma 1 one way encrypt so carik yang 64 bit encrypt sahaja kalau nak 2 way encryption

  8. #8
    Join Date
    May 2002
    Location
    Klate
    Posts
    91
    Rep Power
    214
    Terima kasih kerana sudi menolong saya mencari kod encryption yang percuma. Saya akan mencuba kod yang njzone bagi tu.

  9. #9
    Join Date
    May 2002
    Location
    Kuala Lumpur, Malaysia
    Posts
    36
    Rep Power
    0
    but it is very easy to decrypt also, think bout security if u r doiin e-commerce site

  10. #10
    Join Date
    Oct 2001
    Location
    Melbourne, AU
    Posts
    456
    Rep Power
    229
    Originally posted by victor
    but it is very easy to decrypt also, think bout security if u r doiin e-commerce site
    Easy's not the word I would use

  11. #11
    Join Date
    Jan 2003
    Location
    dreamland
    Posts
    240
    Rep Power
    208
    erm....
    that right victor...
    security is a must for secure private data transaction such as credit card n password...
    try to look for more secure application coding in the internet...
    try use ssl or vpn for data transaction...
    ^_^ <== stay happy

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. pHp Encryption
    By webringgit in forum Website Programming
    Replies: 6
    Last Post: 23-10-2010, 07:17 PM
  2. PHP Encryption
    By smithveg in forum Website Programming
    Replies: 0
    Last Post: 30-11-2009, 01:50 AM
  3. PHP Code Encryption
    By smithveg in forum Webmaster Tools
    Replies: 4
    Last Post: 09-08-2009, 02:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112