Page 1 of 2

Binary conversion

PostPosted: Mon Jul 20, 2015 12:14 pm
by stu
Hello,

Is there any way of converting binary into text, sort of like: http://es.convertbinary.com/

?

Re: Binary conversion

PostPosted: Mon Jul 20, 2015 12:22 pm
by HPW
Hello,

What do you want to do with it?
You may have a look at MIME-Encoding, then you can store/send binary as text.
When you want the representation like in your link with 0/1 , I am not aware of a tool/plugin for neobook.

Regards

Re: Binary conversion

PostPosted: Mon Jul 20, 2015 12:38 pm
by stu
Uhmm..yeah... I wish i could say I have an amazing idea but I dont, actually I was just fooling around with number operations and randoms and started thinking on converting a final binary result into text...

No good reason at all, just personal interest... And, you never know, might actually come in hand at some point.

Re: Binary conversion

PostPosted: Tue Jul 21, 2015 11:52 am
by virger
Para ayudar en el asunto, este Pub, en 1 hora de trabajo.
Gracias por leerme.

To assist in the matter, this Pub, in 1 hour of work.
Thanks for reading me.

Code: Select all
NBW Publication Source File
(C)2014 NeoSoft Corp.
Title=Convert 'Tex2Bin' / 'Bin2Tex'
Author=GdoSan/Dr.Sanchez--El Jubilado..Abril 2015
Language=US
NeoBookVer=5.80
ScreenColors=16777216
ScreenWidth=640
ScreenHeight=250
BkndColor=0
ScreenAutoSize=Yes
LinkColor=16711680
WindowStyle=0
WindowOrder=0
WindowPos=0
WindowProps=31
BiDiMode=0
UseUpdateTimer=Yes
ReturnTime=60
ShapeTransColor=536870912
SplashProps=3
CompileType=0
MediaType=0
FilesIncluded=1
FontsIncluded=2
CopyExternalFiles=No
SetupMedia=3
SetupInstDir=C:\MyProgram
SetupTitle=Setup
SetupColors=16711680|0|65535
VersionMajor=1
VersionMinor=0
VersionRelease=0
VersionBuild=0
ReqExLevel=1
CustomFontName=Arial
CustomFontSize=9
CustomFontStyle=0
CustomCharset=1
CacheSize=30
ExtractOp=132
L_OK=OK
L_CANCEL=Cancel
L_YES=Yes
L_NO=No
L_CLOSE=Close
L_ERRORTITLE=Error
L_FINDTITLE=Find
L_FINDPROMPT=Find &What
L_FINDFIRST=&Find First
L_FINDNEXT=Find &Next
L_FINDERROR=Search text not found.
L_PWORDTITLE=Password required
L_PWORDMSG=Before continuing, you must first|enter the correct password.
L_PWORDPROMPT=&Password:
L_PWORDERROR=That's not the right password!
L_MEDIAERROR=In order to play this type of file you must install|the appropriate multimedia hardware and/or|software.
L_INTERNETERROR=Unable to locate Internet Browser software.
L_ABORTFUNCTION=Do you want to cancel this function?
L_EXTRACTERROR=This file could not be extracted and cannot be played.
L_INSTDIRPROMPT=Please enter the drive and directory where you would like this program to be installed. To accept the default drive and directory, simply press Enter.
L_INSTFOLDERPROMPT=Do you wish to create a program folder?
L_INSTRUNPROMPT=Do you want to run
L_INSTDISKPROMPT=Please insert disk #
L_INSTDISKERROR=That's not the correct disk, try again.
L_INSTGENERROR=The installation has terminated.
L_INSTEXITPROMPT=Do you really want to cancel the installation?
L_INSTWINTITLE=Setup
L_INSTPROGTITLE=Extracting Files...
L_SENDEMAIL=Sending Mail...
L_MAILSERVER=Please enter the name of your outgoing email server:
L_COPY=Copy to Clipboard
L_SELECTALL=Select All
L_DONWLOADFILE=Downloading: %s
L_PLEASEWAIT=Please wait...
TrayMenuBegin
MenuName=TrayOpen
MenuText=Open
MenuState=3
MenuKey=0
MenuAction=SetVar "[WindowState]" "Normal"
MenuName=TrayExit
MenuText=Exit
MenuState=3
MenuKey=0
MenuAction=Exit "" ""
MenuEnd
MasterPage
NewPage=New Page
PageStyle=0
PageColor=16777215
PageGradient1=16711680
PageGradient2=255
PageGradientDir=1
WallpaperStyle=0
ObjectType=9
Name=Tx
X=19
Y=93
W=240
H=150
Anchor=0
VarName=[tx]
Align=1
EditMultiLine=Yes
WordWrap=No
EditLen=0
LineColor=0
LineWidth=1
LineStyle=0
FillColor=16314584
FillPattern=0
Font=Arial
FontSize=14
FontStyle=0
FontCharset=1
TextColor=0
TabOrder=2
ObjectType=9
Name=Ch
X=19
Y=62
W=29
H=25
Anchor=0
Text=@
VarName=[Ch]
Align=1
EditMultiLine=Yes
WordWrap=No
ScrollBar=No
EditCase=1
EditLen=1
ObjAction=Call "Ch2Bin" "[Ch]" "[Bn]"¶strlen "[Bn]" "[Lx]"¶substr "000000[Bn]" "[Lx]" "7" "[Bn]"¶FocusObject "Tx"¶sendkeys "" "[Bn]"¶FocusObject "Ch"¶setvar "[Ch]" ""
LineColor=0
LineWidth=1
LineStyle=0
FillColor=8423672
FillPattern=0
Font=Arial
FontSize=14
FontStyle=0
FontCharset=1
TextColor=0
TabOrder=1
ObjectType=3
Name=BtTex2Bin
X=54
Y=62
W=98
H=27
Anchor=0
Text=Text2Bin
Align=2
ImageStyle=0
XPTheme=Yes
ObjAction=strlen "[Tx]" "[Len]"¶setvar "[Bin]" ""¶loop "1" "[Len]" "[N]"¶    substr "[Tx]" "[N]" "1" "[Ch]"¶    Call "Ch2Bin" "[Ch]" "[Bn]"¶    strlen "[Bn]" "[Lx]"¶    substr "0000000[Bn]" "[Lx]+1" "7" "[Bn]"¶    setvar "[Bin]" "[Bin][Bn]"¶endloop¶setvar "[Tx]" "[Bin]"
LineColor=0
LineWidth=1
LineStyle=0
FillColor=14671839
FillPattern=0
Font=Arial
FontSize=12
FontStyle=0
FontCharset=1
TextColor=0
TabOrder=5
ObjectType=3
Name=BtBin2Tex
X=157
Y=62
W=98
H=27
Anchor=0
Text=Bin2Text
Align=2
ImageStyle=0
XPTheme=Yes
ObjAction=if "[0100000]" "=" ""¶   SetVar "[0100000]" "[#32]"¶   SetVar "[0100001]" "!"¶   SetVar "[0100010]" "[#34]"¶   SetVar "[0100011]" "#"¶   SetVar "[0100100]" "$"¶   SetVar "[0100101]" "%"¶   SetVar "[0100110]" "&"¶   SetVar "[0100111]" "'"¶   SetVar "[0101000]" "("¶   SetVar "[0101001]" ")"¶   SetVar "[0101010]" "*"¶   SetVar "[0101011]" "+"¶   SetVar "[0101100]" ","¶   SetVar "[0101101]" "-"¶   SetVar "[0101110]" "."¶   SetVar "[0101111]" "/"¶   SetVar "[0110000]" "0"¶   SetVar "[0110001]" "1"¶   SetVar "[0110010]" "2"¶   SetVar "[0110011]" "3"¶   SetVar "[0110100]" "4"¶   SetVar "[0110101]" "5"¶   SetVar "[0110110]" "6"¶   SetVar "[0110111]" "7"¶   SetVar "[0111000]" "8"¶   SetVar "[0111001]" "9"¶   SetVar "[0111010]" ":"¶   SetVar "[0111011]" ";"¶   SetVar "[0111100]" "<"¶   SetVar "[0111101]" "="¶   SetVar "[0111110]" ">"¶   SetVar "[0111111]" "?"¶   SetVar "[1000000]" "@"¶   SetVar "[1000001]" "A"¶   SetVar "[1000010]" "B"¶   SetVar "[1000011]" "C"¶   SetVar "[1000100]" "D"¶   SetVar "[1000101]" "E"¶   SetVar "[1000110]" "F"¶   SetVar "[1000111]" "G"¶   SetVar "[1001000]" "H"¶   SetVar "[1001001]" "I"¶   SetVar "[1001010]" "J"¶   SetVar "[1001011]" "K"¶   SetVar "[1001100]" "L"¶   SetVar "[1001101]" "M"¶   SetVar "[1001110]" "N"¶   SetVar "[1001111]" "O"¶   SetVar "[1010000]" "P"¶   SetVar "[1010001]" "Q"¶   SetVar "[1010010]" "R"¶   SetVar "[1010011]" "S"¶   SetVar "[1010100]" "T"¶   SetVar "[1010101]" "U"¶   SetVar "[1010110]" "V"¶   SetVar "[1010111]" "W"¶   SetVar "[1011000]" "X"¶   SetVar "[1011001]" "Y"¶   SetVar "[1011010]" "Z"¶   SetVar "[1011011]" "[#91]"¶   SetVar "[1011100]" "\"¶   SetVar "[1011101]" "[#93]"¶   SetVar "[1011110]" "^"¶   SetVar "[1011111]" "_"¶   SetVar "[1100000]" "`"¶   SetVar "[1100001]" "a"¶   SetVar "[1100010]" "b"¶   SetVar "[1100011]" "c"¶   SetVar "[1100100]" "d"¶   SetVar "[1100101]" "e"¶   SetVar "[1100110]" "f"¶   SetVar "[1100111]" "g"¶   SetVar "[1101000]" "h"¶   SetVar "[1101001]" "i"¶   SetVar "[1101010]" "j"¶   SetVar "[1101011]" "k"¶   SetVar "[1101100]" "l"¶   SetVar "[1101101]" "m"¶   SetVar "[1101110]" "n"¶   SetVar "[1101111]" "o"¶   SetVar "[1110000]" "p"¶   SetVar "[1110001]" "q"¶   SetVar "[1110010]" "r"¶   SetVar "[1110011]" "s"¶   SetVar "[1110100]" "t"¶   SetVar "[1110101]" "u"¶   SetVar "[1110110]" "v"¶   SetVar "[1110111]" "w"¶   SetVar "[1111000]" "x"¶   SetVar "[1111001]" "y"¶   SetVar "[1111010]" "z"¶   SetVar "[1111011]" "{"¶   SetVar "[1111100]" "[#124]"¶   SetVar "[1111101]" "}"¶   SetVar "[1111110]" "~"¶endif¶¶strlen "[Tx]" "[Len]"¶math "[Len]/7" "" "[len]"¶setvar "[Bin]" ""¶setvar "[C]" "1"¶loop "1" "[Len]" "[N]"¶    substr "[Tx]" "[C]" "7" "[Bn]"¶    setvar "[Bin]" "[Bin][[Bn]]"¶    math "[C]+7" "" "[C]"¶endloop¶setvar "[Tx]" "[Bin]"
LineColor=0
LineWidth=1
LineStyle=0
FillColor=14671839
FillPattern=0
Font=Arial
FontSize=12
FontStyle=0
FontCharset=1
TextColor=0
TabOrder=4
ObjectType=8
Name=InfGrl
X=0
Y=0
W=109
H=31
Anchor=0
Font=Arial
FontSize=14
FontStyle=0
FontCharset=1
TextColor=0
Text={\rtf1\ansi\deff0\deftab254{\fonttbl{\f0\fnil\fcharset1 Arial;}}{\colortbl\red0\green0\blue0;\red255\green0\blue0;\red0\green128\blue0;\red0\green0\blue255;\red255\green255\blue0;\red255\green0\blue255;\red128\green0\blue128;\red128\green0\blue0;\red0\green255\blue0;\red0\green255\blue255;\red0\green128\blue128;\red0\green0\blue128;\red255\green255\blue255;\red192\green192\blue192;\red128\green128\blue128;\red0\green0\blue0;\red0\green0\blue0;}\paperw12240\paperh15840\margl1440\margr1440\margt1440\margb1440\margh720\margf720{\*\pnseclvl1\pnucrm\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl2\pnucltr\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl3\pndec\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl4\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{)}}}¶{\*\pnseclvl5\pndec\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl6\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl7\pnlcrm\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl8\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl9\pndec\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶\endnhere\sectdefaultcl{\pard{\qc\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs28\cf0 Focus Here}}¶}
HMargin=0
VMargin=0
LineColor=0
LineWidth=1
LineStyle=0
FillColor=8423672
FillPattern=1
TabOrder=7
ObjectType=7
Name=Line1
X1=53
Y1=30
X2=32
Y2=62
EndCaps=512
LineColor=0
LineWidth=3
LineStyle=0
FillColor=8423672
FillPattern=1
TabOrder=6
ObjectType=8
Name=TheFunction
X=270
Y=93
W=353
H=150
Anchor=0
Font=Arial
FontSize=11
FontStyle=0
FontCharset=1
TextColor=0
Text={\rtf1\ansi\deff0\deftab254{\fonttbl{\f0\fnil\fcharset1 Arial;}}{\colortbl\red0\green0\blue0;\red255\green0\blue0;\red0\green128\blue0;\red0\green0\blue255;\red255\green255\blue0;\red255\green0\blue255;\red128\green0\blue128;\red128\green0\blue0;\red0\green255\blue0;\red0\green255\blue255;\red0\green128\blue128;\red0\green0\blue128;\red255\green255\blue255;\red192\green192\blue192;\red128\green128\blue128;\red0\green0\blue0;\red0\green0\blue0;}\paperw12240\paperh15840\margl1440\margr1440\margt1440\margb1440\margh720\margf720{\*\pnseclvl1\pnucrm\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl2\pnucltr\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl3\pndec\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl4\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{)}}}¶{\*\pnseclvl5\pndec\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl6\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl7\pnlcrm\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl8\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl9\pndec\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶\endnhere\sectdefaultcl{\pard{\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs22\cf0 \{NeoBook Function\}\par¶\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs22\cf0 Version=5.80\par¶\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs22\cf0 Language=JScript\par¶\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs22\cf0 Param=[%ch]|Variable|Char To Convert\par¶\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs22\cf0 Param=[%rt]|Variable|Return Binary\par¶\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs22\cf0 \{End\}\par¶\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs22\cf0 nbSetVar( '[%rt]', nbGetVar("[%ch]").charCodeAt(0).toString(2)) ;\par¶\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs22\cf0 }}¶}
HMargin=0
VMargin=0
LineColor=0
LineWidth=1
LineStyle=0
FillColor=14213368
FillPattern=0
TabOrder=9
ObjectType=8
Name=InfTit
X=270
Y=63
W=342
H=25
Anchor=0
Font=Arial
FontSize=12
FontStyle=0
FontCharset=1
TextColor=0
Text={\rtf1\ansi\deff0\deftab254{\fonttbl{\f0\fnil\fcharset1 Arial;}}{\colortbl\red0\green0\blue0;\red255\green0\blue0;\red0\green128\blue0;\red0\green0\blue255;\red255\green255\blue0;\red255\green0\blue255;\red128\green0\blue128;\red128\green0\blue0;\red0\green255\blue0;\red0\green255\blue255;\red0\green128\blue128;\red0\green0\blue128;\red255\green255\blue255;\red192\green192\blue192;\red128\green128\blue128;\red0\green0\blue0;\red0\green0\blue0;}\paperw12240\paperh15840\margl1440\margr1440\margt1440\margb1440\margh720\margf720{\*\pnseclvl1\pnucrm\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl2\pnucltr\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl3\pndec\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl4\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{)}}}¶{\*\pnseclvl5\pndec\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl6\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl7\pnlcrm\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl8\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl9\pndec\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶\endnhere\sectdefaultcl{\pard{\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs24\cf0 Save This Like "FUNCTION \plain\f0\fs24\cf0\b\ul\i 'Ch2Bin'\plain\f0\fs24\cf0 "}}¶}
HMargin=0
VMargin=0
LineColor=0
LineWidth=0
LineStyle=0
FillColor=14671839
FillPattern=1
TabOrder=10
ObjectType=3
Name=BtSetting
X=109
Y=30
W=98
H=27
Anchor=0
Text=Run First
Align=2
ImageStyle=0
XPTheme=Yes
ObjAction=.. Run this code in 'PagEnter'¶SetVar "[0100000]" "[#32]"¶SetVar "[0100001]" "!"¶SetVar "[0100010]" "[#34]"¶SetVar "[0100011]" "#"¶SetVar "[0100100]" "$"¶SetVar "[0100101]" "%"¶SetVar "[0100110]" "&"¶SetVar "[0100111]" "'"¶SetVar "[0101000]" "("¶SetVar "[0101001]" ")"¶SetVar "[0101010]" "*"¶SetVar "[0101011]" "+"¶SetVar "[0101100]" ","¶SetVar "[0101101]" "-"¶SetVar "[0101110]" "."¶SetVar "[0101111]" "/"¶SetVar "[0110000]" "0"¶SetVar "[0110001]" "1"¶SetVar "[0110010]" "2"¶SetVar "[0110011]" "3"¶SetVar "[0110100]" "4"¶SetVar "[0110101]" "5"¶SetVar "[0110110]" "6"¶SetVar "[0110111]" "7"¶SetVar "[0111000]" "8"¶SetVar "[0111001]" "9"¶SetVar "[0111010]" ":"¶SetVar "[0111011]" ";"¶SetVar "[0111100]" "<"¶SetVar "[0111101]" "="¶SetVar "[0111110]" ">"¶SetVar "[0111111]" "?"¶SetVar "[1000000]" "@"¶SetVar "[1000001]" "A"¶SetVar "[1000010]" "B"¶SetVar "[1000011]" "C"¶SetVar "[1000100]" "D"¶SetVar "[1000101]" "E"¶SetVar "[1000110]" "F"¶SetVar "[1000111]" "G"¶SetVar "[1001000]" "H"¶SetVar "[1001001]" "I"¶SetVar "[1001010]" "J"¶SetVar "[1001011]" "K"¶SetVar "[1001100]" "L"¶SetVar "[1001101]" "M"¶SetVar "[1001110]" "N"¶SetVar "[1001111]" "O"¶SetVar "[1010000]" "P"¶SetVar "[1010001]" "Q"¶SetVar "[1010010]" "R"¶SetVar "[1010011]" "S"¶SetVar "[1010100]" "T"¶SetVar "[1010101]" "U"¶SetVar "[1010110]" "V"¶SetVar "[1010111]" "W"¶SetVar "[1011000]" "X"¶SetVar "[1011001]" "Y"¶SetVar "[1011010]" "Z"¶SetVar "[1011011]" "[#91]"¶SetVar "[1011100]" "\"¶SetVar "[1011101]" "[#93]"¶SetVar "[1011110]" "^"¶SetVar "[1011111]" "_"¶SetVar "[1100000]" "`"¶SetVar "[1100001]" "a"¶SetVar "[1100010]" "b"¶SetVar "[1100011]" "c"¶SetVar "[1100100]" "d"¶SetVar "[1100101]" "e"¶SetVar "[1100110]" "f"¶SetVar "[1100111]" "g"¶SetVar "[1101000]" "h"¶SetVar "[1101001]" "i"¶SetVar "[1101010]" "j"¶SetVar "[1101011]" "k"¶SetVar "[1101100]" "l"¶SetVar "[1101101]" "m"¶SetVar "[1101110]" "n"¶SetVar "[1101111]" "o"¶SetVar "[1110000]" "p"¶SetVar "[1110001]" "q"¶SetVar "[1110010]" "r"¶SetVar "[1110011]" "s"¶SetVar "[1110100]" "t"¶SetVar "[1110101]" "u"¶SetVar "[1110110]" "v"¶SetVar "[1110111]" "w"¶SetVar "[1111000]" "x"¶SetVar "[1111001]" "y"¶SetVar "[1111010]" "z"¶SetVar "[1111011]" "{"¶SetVar "[1111100]" "[#124]"¶SetVar "[1111101]" "}"¶SetVar "[1111110]" "~"¶¶disableobject "BtSetting"
LineColor=0
LineWidth=1
LineStyle=0
FillColor=14671839
FillPattern=0
Font=Arial
FontSize=12
FontStyle=0
FontCharset=1
TextColor=0
TabOrder=3


Re: Binary conversion

PostPosted: Wed Jul 22, 2015 6:14 am
by stu
hey thanks a bunch, yeah I thought it might take something like that to do it (without a plugin or api), works pretty good...

=)

Re: Binary conversion

PostPosted: Wed Jul 22, 2015 6:25 am
by HPW
Hm, JScript is not an API?

Re: Binary conversion

PostPosted: Wed Jul 22, 2015 7:31 am
by dpayer
How would you take an existing binary file (executable, pdf, jpg, etc) and convert it to text using this sample app?

MIME was created for this. Remember, originally in email ( 20 years ago, back when digital dinosaurs roamed the earth) you could only send text. The Multipurpose Internet Mail Extensions (MIME) was created to take binary files and encode them into a text format to make them transportable via SMTP . Eventually that went beyond simple binary attachments to include HTML files and the graphics embedded within them which allows for our current standard of graphic rich email.

The MIME standard is well established and allows ready conversion between binary formats and ASCII text format. Of course, the MIME files are bigger than the original binary file but they are transportable and easily error checked.

Hans Peter has created a plugin that does MIME encoding/decoding. He didn't bring credit to himself in making his recommendation but he deserves recognition for providing a useful tool. I recommend looking into that.

Re: Binary conversion

PostPosted: Wed Jul 22, 2015 9:21 am
by Neosoft Support
Hans-Peter's plug-in with the Mime encode/decode actions can be found here:

http://www.neosoftware.com/neobook/modules/plugins/singlefile.php?cid=6&lid=11

Re: Binary conversion

PostPosted: Thu Jul 23, 2015 10:44 am
by stu
I'm grateful for the answers... I had a very simple idea in mind, not for a commercial nor useful implementation...

Plan was, Textbox and button, write something and press button, button passes text to binary and sends it via tcp/ip (using npTalk or similar) to another pc in the lan. Pc in the middle captures the data packet traveling in binary, then the same with encryption, then the same with double encryption and password, then grab the dumps and crack them (if possible), and that's pretty much about it...

It was just one of those things where your not even trying to make a point, its more about checking up what happens... Thanks for your replies!

Re: Binary conversion

PostPosted: Fri Aug 21, 2015 4:05 pm
by Enigman
Keep in mind that text works on 8 bit boundaries, not 7 bit. The program example above seems to be using arrays of 7 bit comparisons. 7 bits only gets you the first 128 characters of the ASCII/ANSI set. The set is actually 255 characters. And beware of generating control characters.

I've worked with these conversions a lot in the process of developing encrypted text applications.

Re: Binary conversion

PostPosted: Fri Aug 21, 2015 5:38 pm
by stu
Enigman wrote:Keep in mind that text works on 8 bit boundaries, not 7 bit. The program example above seems to be using arrays of 7 bit comparisons. 7 bits only gets you the first 128 characters of the ASCII/ANSI set. The set is actually 255 characters. And beware of generating control characters.

I've worked with these conversions a lot in the process of developing encrypted text applications.


In your experience, do you think is possible to securely send data between applications through TCP/IP by using any possible Neobook implementation?

Re: Binary conversion

PostPosted: Fri Aug 21, 2015 6:31 pm
by Enigman
In your experience, do you think is possible to securely send data between applications through TCP/IP by using any possible Neobook implementation?

Well, ... I guess that depends on your definition of "securely send data". I know you said TCP/IP but it also depends on exactly how and what you are sending and between what kinds of applications.

Are you sending text between apps and by securely do you mean sending clear text or encrypted text?

Re: Binary conversion

PostPosted: Fri Aug 21, 2015 9:12 pm
by stu
I'm not so sure to be honest...

I guess a possible scenario will be a simple hashed text string. Say... SHA512 using some sort of decent password, that sent through tcp/ip to a remote listener... If that data packet can, and it can, be sniffed by wireshark what are the odds of the string eventually being cracked? Or can we count that once the string its captured its game over? I dont know... Paranoia?

Re: Binary conversion

PostPosted: Sat Aug 22, 2015 12:32 am
by Enigman
Post content removed by author.

Re: Binary conversion

PostPosted: Mon Aug 24, 2015 10:02 am
by stu
Awesome reply is awesome.

I'm not sure why lately I been trying to ROT13 the crap out life... I like the subject I guess, my problem is all the math behind encryption... Might actually try to accomplish a half decent encryption for text strings, maybe IDEA based... Thanks for your input in the subject I'll make sure of sending you my cipher once finished so you can have a look !

=)

Cheers!