Erik. Posted April 25, 2006 Share Posted April 25, 2006 Hi, Does someone has a program where you can encrypt Binary,hex,decimal? i want to use it for school. I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
Don N Posted April 25, 2006 Share Posted April 25, 2006 could try this: if u look in the help files, there is "_StringEncrypt.au3" this will encrypt strings so jsut put whatever data you want in a string and encrypt it that way.could try this maybe: _____________________________________________________"some people live for the rules, I live for exceptions"Wallpaper Changer - Easily Change Your Windows Wallpaper Link to comment Share on other sites More sharing options...
Erik. Posted April 25, 2006 Author Share Posted April 25, 2006 Yeah okej but how to make a program that can calculate to Binary,hex,and decimal i do not have any idea how to do. I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
cdkid Posted April 25, 2006 Share Posted April 25, 2006 Well, I'm not sure on exactly how to calc bin2hex and bin2dec, but autoit has built in functions for hex2dec & dec2hex called Hex & Dec. In closing: RTFM ~cdkid AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide! Link to comment Share on other sites More sharing options...
Erik. Posted April 25, 2006 Author Share Posted April 25, 2006 How to calculate whit it? I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
SpookMeister Posted April 25, 2006 Share Posted April 25, 2006 Look in the help file for Hex() and Dec() for Binary.. you will have to make your own (or at least I did whenever I was working with it) [u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote] Link to comment Share on other sites More sharing options...
Don N Posted April 25, 2006 Share Posted April 25, 2006 is the question how to actually convert from bin2dec adn bin2hex from a math standpoint or jsut how to do it in autoit? if ur still stuck tom i can up the code to do this stuff from my other computer _____________________________________________________"some people live for the rules, I live for exceptions"Wallpaper Changer - Easily Change Your Windows Wallpaper Link to comment Share on other sites More sharing options...
Lapo Posted April 26, 2006 Share Posted April 26, 2006 How to calculate whit it? I made this for personal use .. try it out (hex TO dec) downloader.txt looks like : [vMatch] lippè=cippo sn=0000000000 nono=******* key=00 key=01 1C4D330F17D4C057 21/10/2004 key=02 key=03 1C4D330F17D4C057 02/02/2006 key=04 key=05 key=06 key=07 key=08 1C4DF60F17D4C057 15/12/2002 key=09 1C4DF60F22D4C057 08/09/2004 key=0a 1CA4F60F17D4C057 04/10/2004 key=0b BB4DF60F17D4C057 20/10/2004 key=0c 1C4D330F17D4C057 08/12/2004 key=0d 224DF60F17D4C057 23/06/2004 key=0e 1C4DF60F17D4C012 29/07/2004 key=0f 1C4DF60F17D4C057 04/03/2005 key=10 key=11 key=12 key=13 8AEAF8289B3330C0 02/02/2006 key=14 key=15 key=16 key=17 key=18 key=19 key=1a key=1b key=1c key=1d key=1e key=1f [hhhhhhhhhh] xxxxx=yyyyyyyy ecc expandcollapse popup$var = IniReadSection("Downloader.txt", "vMatch") If @error Then MsgBox(4096, "", "Mettimi nella cartella del DOWNLOADER.txt") Else $a1=$var[7][1]; key 01 MsgBox(0,"",$a1) $a2=$var[23][1]; key 13 MsgBox(0,"",$a2) EndIf $a1x = StringSplit($a1," "); split solo key 01>> key= ******** data ;MsgBox(0,"",$a1x[2]) $a2x = StringSplit($a2," "); split solo key 13 $aa = _HexToDec($a1x[2]) ;MsgBox(0,"",$aa) $aa2 = _HexToDec($a2x[2]) Func _HexToDec($strHex) Local $strChar, $aryHex, $i, $iDec, $Char, $file, $iOne, $iTwo ,$len $aryHex = StringSplit($strHex, ""); delimiter each caracter ;MsgBox(0,"",$aryHex[0]); 16 =lunghezza ;MsgBox(0,"",$aryHex[1]); each caracter ;MsgBox(0,"",$aryHex[2]); each caracter If Mod($aryHex[0], 2) <> 0 Then SetError(1) Return -1 EndIf For $i = 1 To $aryHex[0] $iOne = $aryHex[$i] $i = $i + 1 $iTwo = $aryHex[$i] $iDec = Dec($iOne & $iTwo) ;Msgbox(4096,"",$iDec);;;;;;;; BINGO If @error <> 0 Then SetError(1) Return -1 EndIf ;;;; $Char = Chr($iDec) $Char = $iDec ;;;;;;;;;; Msgbox(4096,"",$Char) $Charx = StringLen($Char) if $Charx = "2" then $Char = "0"& $Char $strChar = $strChar & $Char & " " ; Msgbox(4096,"",$Char) Next Return $strChar EndFunc $file = FileOpen("keys.log", 2) If $file = -1 Then MsgBox(0, "Error", "Unable to open file.") Exit EndIf FileWrite($file, " vMatch vMatch xxx_Keys"&@CRLF&@CRLF) FileWrite($file, $a1x[1] &" ") FileWrite($file, $a1x[2] & " ") FileWrite($file,$a1x[3] &@CRLF&@CRLF) FileWrite($file,$aa & @CRLF &@CRLF& @CRLF ) FileWrite($file, $a2x[1] &" ") FileWrite($file, $a2x[2] & " ") FileWrite($file,$a2x[3] &@CRLF&@CRLF) FileWrite($file,$aa2) FileClose($file) Run("c:\windows\notepad.exe keys.log") Link to comment Share on other sites More sharing options...
Erik. Posted April 26, 2006 Author Share Posted April 26, 2006 lol, made nice. Thanks for the help! I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now