Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    592
    Thanks
    0
    Thanked 1 Time in 1 Post

    Lightbulb Encoding & decoding? Pwd Security?

    Hi masters,

    The following (var win open) JavaScript is encoded by the Windows Script Encoder (SCRENC):

    <script language = JScript.Encode>#@~^fAAAAA==@#@&\CMPmxWDt.hbx[WS'Ar NWS Wa+xvE^)JJ*@#@&\C.,lUWD4+MhrU9WhxAbx[WS Kwn`rN)JJ*@#@&7l.PmxGO4+DSrx9Wh{Arx9WSRGwnUvJn)JE#@#@&dycAAA==^#~@</script>

    The SCRENC encoding command doesn't contain any decoding command like SCRDEC. But Microsoft said the SCRENC can't guarantee the
    real security of the encoded Scripts.

    Are there any ways to decode the scripts like these?

    If I embed passwords encoded in web pages like the above scripts, how many percentage will they secure? Should I do this?

    Hearty thanks for your suggestions and guidance.


    Best Regards,
    iota

  • #2

  • #3
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,965
    Thanks
    0
    Thanked 236 Times in 233 Posts
    As Javascript needs to be downloaded to the client in order for it to run, no amount of encoding will stop the user from seeing the actual code. You can only make it harder for the user to decode it.

    hiding javascript
    http://www.vortex-webdesign.com/help/hidesource.htm

  • #4
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yawn yawn yawn ...

    why are these threads becoming more prevalent. they're getting more and more wearisome by the day.
    *keep it simple (TM)

  • #5
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    There's an answer to this in the FAQ. Question 16: How do I hide my JavaScript source code?
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    1,137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    for something to be secure, it has 3 parts:
    1)An encoded Message
    2)An Original Message
    3)A Key

    If someone gets two of the above they can work out the original message, simply expressed as an eqation

    Original Message + Key = Encoded Message

    So having any two means that it will never be secure, as the third can be derived.

    I read about this in an artical link from another thread about why DRM is pointless.

    scroots
    Spammers next time you spam me consider the implications:
    (1) that you will be persuaded by me(in a legitimate mannor)
    (2)It is worthless to you, when i have finished

  • #7
    Smokes a Lot
    Join Date
    Jul 2003
    Location
    CA, USA
    Posts
    1,594
    Thanks
    5
    Thanked 20 Times in 20 Posts
    Quote Originally Posted by scroots
    I read about this in an artical link from another thread about why DRM is pointless.
    Would that be the one Liorean linked to in Tech discussions? That was a good read. Really summed it all up.

    Basscyst
    Helping to build a bigger box. - Adam Matthews


  •  

    Posting Permissions

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