WEB fucking javascript is pissing me off. Anyone help wiht some basic encryption?

Discussion in 'OT Technology' started by Ricky, Nov 24, 2009.

  1. Ricky

    Ricky █▄ █▄█ █▄ ▀█▄

    Joined:
    Jun 17, 2005
    Messages:
    38,767
    Likes Received:
    6
    So basically i need to encrypt one html line.

    Let's say it's a link, so <a href="http://google.com">google</a>

    Thing is, the href or src is actually a php variable which changes, so it'd actually be

    <a href="<?php $website;?>">google</a>

    How can i go about encrypting this into javascript?
     
  2. Ricky

    Ricky █▄ █▄█ █▄ ▀█▄

    Joined:
    Jun 17, 2005
    Messages:
    38,767
    Likes Received:
    6
    kinda like this

    http://www.iwebtool.com/html_encrypter

    It encrypts the link i had into

    <Script Language='Javascript'>
    <!-- HTML Encryption provided by iWEBTOOL.com -->
    <!--
    document.write(unescape('%3C%61%20%68%72%65%66%3D%22%68%74%74%70%3A%2F%2F%67%6F%6F%67%6C%65%2E%63%6F%6D%22%3E%67%6F%6F%67%6C%65%3C%2F%61%3E'));
    //-->
    </Script>

    i need something like that, but kind of "on the fly" if you know what i mean :o
     
  3. Ricky

    Ricky █▄ █▄█ █▄ ▀█▄

    Joined:
    Jun 17, 2005
    Messages:
    38,767
    Likes Received:
    6
    thanks a ton dude.

    i'll try it out in a bit and report back
     
  4. Ricky

    Ricky █▄ █▄█ █▄ ▀█▄

    Joined:
    Jun 17, 2005
    Messages:
    38,767
    Likes Received:
    6
    works perfectly

    thanks man
     
  5. quid

    quid I Piss Excellence OT Supporter

    Joined:
    Aug 28, 2004
    Messages:
    50,352
    Likes Received:
    3
    Location:
    california
    sorry to barge in but can i ask why you wanted the link encrypted?
     
  6. quid

    quid I Piss Excellence OT Supporter

    Joined:
    Aug 28, 2004
    Messages:
    50,352
    Likes Received:
    3
    Location:
    california
    ooooo that never occurred to me!

    I will prob use this script, so thanks!!
     
    Last edited: Nov 25, 2009
  7. Mikenotmike

    Mikenotmike

    Joined:
    Jun 1, 2001
    Messages:
    6,244
    Likes Received:
    0
    Location:
    USA
    Holy shit i was actually passively looking for this, works fantastic :bowdown: thank you
     

Share This Page