Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: [Tutorial] Manually Encrypting Batch Files [Easy]  (Read 9008 times)

0 Members and 1 Guest are viewing this topic.

lmsmi1

    Topic Starter


    Rookie

    • Experience: Beginner
    • OS: Windows XP
    [Tutorial] Manually Encrypting Batch Files [Easy]
    « on: November 05, 2011, 07:06:58 PM »
    Ok, this is my first official tutorial. Here we go!

    Description: This tutorial will show you how to make wicked looking batch files that are encrypted to fit your desires. HOWEVER, it is best to use a BAT to EXE compiler/converter in some cases. This will work for most batch files. Have fun!

    Step 1: Open Notepad and type the following code:

    Code: [Select]
    @echo off
    set aa=He
    set bb=ll
    set cc=o
    set dd=Wo
    set ee=rl
    set ff=d
    set gg=!
    set hh=I
    set ii=am
    set jj=an
    set kk=en
    set ll=cr
    set mm=yp
    set nn=te
    set oo=d
    set pp=ba
    set qq=tc
    set rr=h
    set ss=fi
    set tt=le
    set uu=!!
    set vv=!!
    echo %aa%%bb%%cc% %dd%%ee%%ff%%gg%
    echo %hh% %ii% %jj% %kk%%ll%%mm%%nn%%oo% %pp%%qq%%rr% %ss%%tt%%uu%%vv%
    pause >nul

    Now save this as "whatever.bat". Now run it. It should say "Hello World! I am an encrypted batch file!"

    Now, onto explaining this:

    The variables are set to certain words and phrases, or word parts. This means that you can scramble the variables however you want, just don't mess with the final two echos in this case. Finally, all of the variables come together in perfect harmony in a final echo. There you go! An encrypted batch file!

    Geek-9pm


      Mastermind
    • Geek After Dark
    • Thanked: 1026
      • Gekk9pm bnlog
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: [Tutorial] Manually Encrypting Batch Files [Easy]
    « Reply #1 on: November 05, 2011, 08:38:35 PM »
    That is not encryption.
    However, obfuscation is serious business, you can have a future in politics.
    We can not go on any further,
    - there are forum rules on  this sort of thing.
      :P

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: [Tutorial] Manually Encrypting Batch Files [Easy]
    « Reply #2 on: November 05, 2011, 08:40:20 PM »
    problem being that this only encrypts what is output...
    I was trying to dereference Null Pointers before it was cool.

    patio

    • Moderator


    • Genius
    • Maud' Dib
    • Thanked: 1769
      • Yes
    • Experience: Beginner
    • OS: Windows 7
    Re: [Tutorial] Manually Encrypting Batch Files [Easy]
    « Reply #3 on: November 05, 2011, 08:52:55 PM »
    The other problem is writing a bunch of batch/script codes that accomplish nothing...

    But i imagine it's good practice...Carry on...
    " Anyone who goes to a psychiatrist should have his head examined. "

    Helpmeh



      Guru

    • Roar.
    • Thanked: 123
      • Yes
      • Yes
    • Computer: Specs
    • Experience: Familiar
    • OS: Windows 8
    Re: [Tutorial] Manually Encrypting Batch Files [Easy]
    « Reply #4 on: November 05, 2011, 09:31:14 PM »
    You posted this EXACT same script elsewhere...
    Where's MagicSpeed?
    Quote from: 'matt'
    He's playing a game called IRL. Great graphics, *censored* gameplay.

    lmsmi1

      Topic Starter


      Rookie

      • Experience: Beginner
      • OS: Windows XP
      Re: [Tutorial] Manually Encrypting Batch Files [Easy]
      « Reply #5 on: November 05, 2011, 09:58:31 PM »
      Where would someone on here find it?

      BC_Programmer


        Mastermind
      • Typing is no substitute for thinking.
      • Thanked: 1140
        • Yes
        • Yes
        • BC-Programming.com
      • Certifications: List
      • Computer: Specs
      • Experience: Beginner
      • OS: Windows 11
      Re: [Tutorial] Manually Encrypting Batch Files [Easy]
      « Reply #6 on: November 05, 2011, 10:05:04 PM »
      Where would someone on here find it?

      in the bin?
      I was trying to dereference Null Pointers before it was cool.

      Helpmeh



        Guru

      • Roar.
      • Thanked: 123
        • Yes
        • Yes
      • Computer: Specs
      • Experience: Familiar
      • OS: Windows 8
      Re: [Tutorial] Manually Encrypting Batch Files [Easy]
      « Reply #7 on: November 05, 2011, 10:07:38 PM »
      Where's MagicSpeed?
      Quote from: 'matt'
      He's playing a game called IRL. Great graphics, *censored* gameplay.

      Salmon Trout

      • Guest
      Re: [Tutorial] Manually Encrypting Batch Files [Easy]
      « Reply #8 on: November 06, 2011, 12:11:42 PM »
      this is my first official tutorial

      What is "official" about it? It is your very far from first piece of useless nonsense. Why should anybody accept a "tutorial" from an idiot? Or rather a bumptious kid who has learned a few basic commands, but not how to use them for anything anybody would want.

      By now you should have got the hint, but it seems not...


      Salmon Trout

      • Guest

      Linux711



        Mentor

        Thanked: 59
        • Yes
        • Programming Blog
      • Certifications: List
      • Computer: Specs
      • Experience: Experienced
      • OS: Windows 7
      Re: [Tutorial] Manually Encrypting Batch Files [Easy]
      « Reply #10 on: November 07, 2011, 08:42:33 AM »
      *Facepalm*

      How old are you?
      YouTube

      "Genius is persistence, not brain power." - Me

      "Insomnia is just a byproduct of, "It can't be done"" - LaVolpe

      Raven19528



        Hopeful
      • Thanked: 30
        • Computer: Specs
        • Experience: Experienced
        • OS: Windows 7
        Re: [Tutorial] Manually Encrypting Batch Files [Easy]
        « Reply #11 on: November 08, 2011, 11:58:05 AM »
        Tutorial: In Windows 7 environment (not sure about other OS's):

        1. Right-click on batch file; Select Properties
        2. Click Advanced button in General Tab
        3. Check mark "Encrypt contents to secure data"

        It's manual because it involves the user doing something.
        It's encryption because it is ACTUALLY encrypting the file.

        Wow. That seems a lot easier than the originally proposed method. Maybe I should get into this official tutorial business.  :||
        "All things that are
        Are with more spirit chased than enjoy'd" -Shakespeare

        Geek-9pm


          Mastermind
        • Geek After Dark
        • Thanked: 1026
          • Gekk9pm bnlog
        • Certifications: List
        • Computer: Specs
        • Experience: Expert
        • OS: Windows 10
        Re: [Tutorial] Manually Encrypting Batch Files [Easy]
        « Reply #12 on: November 08, 2011, 12:09:03 PM »
        Tutorial: In Windows 7 environment (not sure about other OS's):

        1. Right-click on batch file; Select Properties
        2. Click Advanced button in General Tab
        3. Check mark "Encrypt contents to secure data"

        It's manual because it involves the user doing something.
        It's encryption because it is ACTUALLY encrypting the file.

        Wow. That seems a lot easier than the originally proposed method. Maybe I should get into this official tutorial business.  :||
        Yes! Go for it! Your first Official Tutoriall! (|