Author Topic: [Python] Text Encryption Program  (Read 3933 times)

0 Members and 8 Guests are viewing this topic.

Offline Rhynorater

  • NULL
  • Posts: 1
  • Cookies: 0
    • View Profile
[Python] Text Encryption Program
« on: August 13, 2011, 04:15:37 am »
Hey Guys,

This is my first post so I decided to give it all I have got. I'm going to make an attempt to not just take from this forum but give to it too. So, I have decided to give you guys a program that I coded that is a Text encryption and Decryption program. This isn't much I know but I'm trying to increase in my programing skill while giving to the community here.

Here is the Adf.ly (Just one not a chain)-http://www.mediafire.com/?2l3c63s3kpulvc3
And for you people that don't trust me (I don't blame you), here is a virus scan- http://tinyurl.com/3w86kzm
Enjoy!
Rhynorater


« Last Edit: August 13, 2011, 11:59:55 am by Kulverstukas »

Offline xzid

  • Knight
  • **
  • Posts: 329
  • Cookies: 41
    • View Profile
Re: [Python] Text Encryption Program
« Reply #1 on: August 13, 2011, 04:23:07 am »
Nice job, haven't tested but some of my first programs we're in this style. No virus or anything, read through it. Keep it up.

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: [Python] Text Encryption Program
« Reply #2 on: August 13, 2011, 12:00:51 pm »
why the hell do you scan a Python script for viruses? lol

Offline Satori

  • Peasant
  • *
  • Posts: 88
  • Cookies: 3
    • View Profile
Re: [Python] Text Encryption Program
« Reply #3 on: August 13, 2011, 02:23:11 pm »
could you maybe post the source here or somewhere else for us who wants to take a look at it but are too lazy to download it?

Offline Stackprotector

  • Administrator
  • Titan
  • *
  • Posts: 2515
  • Cookies: 205
    • View Profile
Re: [Python] Text Encryption Program
« Reply #4 on: August 13, 2011, 02:36:48 pm »
No time to try it, but what type of encryption do u use?  what key size? etc
~Factionwars

Offline xzid

  • Knight
  • **
  • Posts: 329
  • Cookies: 41
    • View Profile
Re: [Python] Text Encryption Program
« Reply #5 on: August 13, 2011, 03:05:34 pm »
why the hell do you scan a Python script for viruses? lol

scripting virus isn't a new concept, try saving one of these to PC:

http://vx.netlux.org/lib/static/vdat/tumisc04.htm

AVG: Danger! Warning! Do not run! I'll just quarantine this for you.

Of course a python virus on windows is impractical to say the least, but if you accidentally ran something of this sorts:

http://vxheavens.com/lib/vvx00.html

Wouldn't be too much of problem, but all your python code would have a very bad day.

Granted, his scan probably didn't do anything.
« Last Edit: August 13, 2011, 03:06:00 pm by xzid »

Offline xzid

  • Knight
  • **
  • Posts: 329
  • Cookies: 41
    • View Profile
Re: [Python] Text Encryption Program
« Reply #6 on: August 13, 2011, 03:13:21 pm »
could you maybe post the source here or somewhere else for us who wants to take a look at it but are too lazy to download it?

It's almost 400 lines, a code pasting site maybe better.. But certainly not here. Downloading this is beyond easy.

No time to try it, but what type of encryption do u use?  what key size? etc

from code:

Code: [Select]
    if cryptM == "MD5" or cryptM == "md5":
        MD5()
    elif cryptM == "B64" or cryptM == "base64" or cryptM == "Base64" or cryptM == "b64":
        base64()
    elif cryptM == "B32" or cryptM == "base32" or cryptM == "Base32" or cryptM == "b32":
        base32()
    elif cryptM == "B16" or cryptM == "base16" or cryptM == "Base16" or cryptM == "b16":
        base16()
    elif cryptM == "sha224" or cryptM == "SHA224":
        SHA224()
    elif cryptM == "sha1" or cryptM == "SHA1":
        SHA1()
    elif cryptM == "sha256" or cryptM == "SHA256":
        SHA256()
    elif cryptM == "Sha384" or cryptM == "SHA384":
        SHA384()
    elif cryptM == "sha512" or cryptM == "SHA512":
        SHA512()
    elif cryptM == "exit" or cryptM == "Exit":
        x = 0

I'm assuming it runs like a shell, uses raw_input. Haven't tryed it either, just trying to encourage him to keep scripting.

Offline Stackprotector

  • Administrator
  • Titan
  • *
  • Posts: 2515
  • Cookies: 205
    • View Profile
Re: [Python] Text Encryption Program
« Reply #7 on: August 13, 2011, 03:18:55 pm »
str.lower ???
~Factionwars

Offline xzid

  • Knight
  • **
  • Posts: 329
  • Cookies: 41
    • View Profile
Re: [Python] Text Encryption Program
« Reply #8 on: August 13, 2011, 03:22:49 pm »
is case sensitive, like python. But will also tolerate PEOPLE WITH CAPS LOCK ON!!!

Offline Stackprotector

  • Administrator
  • Titan
  • *
  • Posts: 2515
  • Cookies: 205
    • View Profile
Re: [Python] Text Encryption Program
« Reply #9 on: August 13, 2011, 03:38:33 pm »
but why cryptM == "base16" or cryptM == "Base16" , instead of lowering all chars.
~Factionwars

Offline xzid

  • Knight
  • **
  • Posts: 329
  • Cookies: 41
    • View Profile
Re: [Python] Text Encryption Program
« Reply #10 on: August 13, 2011, 03:39:55 pm »
I don't have an answer for that, I'm done defending him. :o

Offline jenova91

  • NULL
  • Posts: 2
  • Cookies: 0
    • View Profile
Re: [Python] Text Encryption Program
« Reply #11 on: August 21, 2011, 03:46:17 am »
Dude use Pastebin.com :D and thanks for posting im just coming over to Python from C and C++