Sign in to follow this  
Followers 0
mikidutza

encrypror and decriptor

3 posts in this topic




It's very simple but it works. It creates a file that sometimes doubles in size though. By simply opening an encrypted file in a hex editor, a very obvious pattern appears.

Let's say i create a text file that contains the string 'abc' then encrypt it.

I then open it in a hex editor and see six apostrophes then i can work out each letter has two.

I copy from the first apostrophe to the second and replace all instances in the text file (in our case 1) with an 'a' and repeat that process with the other letters. Soon I will notice the correspondance with the number of spaces and the character encrypted.

If anyone really wanted the encrypted information they could decrypt it i am sure.


My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop.

Share this post


Link to post
Share on other sites

a great one from... help

#include <guiconstants.au3>
#include <string.au3>
; GUI and String stuff
$WinMain = GuiCreate('Encryption tool', 400, 400)
; Creates window
$EditText = GuiCtrlCreateEdit('',5,5,380,350)
; Creates main edit
$InputPass = GuiCtrlCreateInput('',5,360,100,20, 0x21)
; Creates the password box with blured/centered input
$InputLevel = GuiCtrlCreateInput(1, 110, 360, 50, 20, 0x2001)
$UpDownLevel = GUICtrlSetLimit(GuiCtrlCreateUpDown($inputlevel),10,1)
; These two make the level input with the Up|Down ability
$EncryptButton = GuiCtrlCreateButton('Encrypt', 170, 360, 105, 35)
; Encryption button
$DecryptButton = GuiCtrlCreateButton('Decrypt', 285, 360, 105, 35)
; Decryption button
GUICtrlCreateLabel('Password', 5, 385)
GuiCtrlCreateLabel('Level',110,385)
; Simple text labels so you know what is what
GuiSetState()
; Shows window

Do
   $Msg = GuiGetMsg()
   If $msg = $EncryptButton Then
      GuiSetState(@SW_DISABLE,$WinMain) ; Stops you from changing anything
      $string = GuiCtrlRead($EditText) ; Saves the editbox for later
      GUICtrlSetData($EditText,'Please wait while the text is Encrypted/Decrypted.') ; Friendly message
      GuiCtrlSetData($EditText,_StringEncrypt(1,$string,GuiCtrlRead($InputPass),GuiCtrlRead($InputLevel)))
      ; Calls the encryption. Sets the data of editbox with the encrypted string
      ; The encryption starts with 1/0 to tell it to encrypt/decrypt
      ; The encryption then has the string that we saved for later from edit box
      ; It then reads the password box & Reads the level box
      GuiSetState(@SW_ENABLE,$WinMain) ; This turns the window back on
   EndIf
   If $msg = $DecryptButton Then
      GuiSetState(@SW_DISABLE,$WinMain) ; Stops you from changing anything
      $string = GuiCtrlRead($EditText) ; Saves the editbox for later
      GUICtrlSetData($EditText,'Please wait while the text is Encrypted/Decrypted.') ; Friendly message
      GuiCtrlSetData($EditText,_StringEncrypt(0,$string,GuiCtrlRead($InputPass),GuiCtrlRead($InputLevel)))
      ; Calls the encryption. Sets the data of editbox with the encrypted string
      ; The encryption starts with 1/0 to tell it to encrypt/decrypt
      ; The encryption then has the string that we saved for later from edit box
      ; It then reads the password box & Reads the level box
      GuiSetState(@SW_ENABLE,$WinMain) ; This turns the window back on
   EndIf
Until $msg = $GUI_EVENT_CLOSE ; Continue loop untill window is closed

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0