Computer Hope

Microsoft => Microsoft DOS => Topic started by: zask on October 14, 2017, 11:26:54 AM

Title: Getting "!" and other difficult characters to encrypt.
Post by: zask on October 14, 2017, 11:26:54 AM
I've managed to get most the special characters but
Characters like "!" And "*" are giving me problems.
Possible work arounds?

I can elaborate if it's not clear to understand.

Code: [Select]
title Encrypt Batch File
color 0a
@echo off
mode con:cols=50 lines=2
echo Encrypt text files.
pause
cls
mode con:cols=100 lines=2
 
set CaseType=97
> Randalphabet.vbs echo randomize timer
>> Randalphabet.vbs echo RandAlphabet=""
>> Randalphabet.vbs echo Do
>> Randalphabet.vbs echo randchar = Chr(Int(26*Rnd+%CaseType%))
>> Randalphabet.vbs echo If Instr(RandAlphabet, randchar) = 0 Then RandAlphabet = RandAlphabet ^& randchar
>> Randalphabet.vbs echo if len(RandAlphabet) = 26 Then exit Do
>> Randalphabet.vbs echo Loop
>> Randalphabet.vbs echo wscript.echo RandAlphabet
for /f "delims=" %%A in ('cscript //nologo Randalphabet.vbs') do set Randalphabet=%%A
del Randalphabet.vbs
 
set /a key1=%random% %% 3%random:~-1%%random:~-1% + 1
set /a key2=%random% %% 3%random:~-1%%random:~-1% + 1
set /a key3=%random% %% 3%random:~-1%%random:~-1% + 1
set /a key4=%random% %% 3%random:~-1%%random:~-1% + 1
set /a key5=%random% %% 3%random:~-1%%random:~-1% + 1
 
set /a count1=%random% %% 2
if "%count1%"=="0" set "math1=+" & set "math2=-"
if "%count1%"=="1" set "math1=-" & set "math2=+"
if "%math2%"=="+" set "math3=-" & set "math4=+"
if "%math2%"=="-" set "math3=+" & set "math4=-"
 
set /a count2=%random% %% 27
if %count2%==1 set separator=È
if %count2%==2 set separator=»
if %count2%==3 set separator=¼
if %count2%==4 set separator=º
if %count2%==5 set separator=Í
if %count2%==6 set separator=¿
if %count2%==7 set separator=¹
if %count2%==8 set separator=µ
if %count2%==9 set separator=Ø
if %count2%==10 set separator=¸
if %count2%==11 set separator=Ð
if %count2%==12 set separator=×
if %count2%==13 set separator=Ù
if %count2%==14 set separator=Ï
if %count2%==15 set separator=Ô
if %count2%==16 set separator=´
if %count2%==17 set separator=Ñ
if %count2%==18 set separator=½
if %count2%==19 set separator=³
if %count2%==20 set separator=Ò
if %count2%==21 set separator=¾
if %count2%==22 set separator=Å
if %count2%==23 set separator=Ä
if %count2%==24 set separator=¶
if %count2%==25 set separator=Ç
if %count2%==26 set separator=Ë
if %count2%==27 set separator=·
 
:options
set /p "FILEA= Enter the name of the text file that you wish to encrypt (Example; "Somefiletxt") : "
cls
if not exist %FILEA% echo The file "%FILEA%" does not exist. & pause & cls & goto options
set /p "FILEB= Enter the name of the decrypter that will be generated (Example; "Decrypter.bat") : "
cls
set /p "FILEC= Would you like to separate the encrypted text from the decrypter? (Y/N) : "
cls
 
Setlocal EnableDelayedExpansion
echo > "%FILEB%" @echo off
echo >> "%FILEB%" mode 200
Setlocal EnableExtensions
for /f "delims=" %%A in (%FILEA%) do (
Set /a C+=1
Set X[!C!]=%%A
set code=%%A
set chars=0123456789%Randalphabet%^|^^%%^&^<^>^{^}^[^]^(^)
for /l %%C in (10 1 48) do (
for /f %%D in ("!chars:~%%C,1!") do (
set /a math=%%C*%key1%*%key1%-%key1%/%key1%%math1%%key2%*%key2%-%key2%/%key2%%math2%%key3%*%key3%-%key3%/%key3%%math1%%key4%*%key4%-%key4%/%key4%%math4%%key5%*%key5%-%key5%/%key5%+5
for /f %%E in ("!math!") do (
set "code=!code:%%D=%separator%%%E!"
)
)
)
if /i "%FILEC%"=="N" echo >> "%FILEB%" echo ^>^> lmotqocflhoi.txt !code!
if /i "%FILEC%"=="Y" echo >> "lmotqocflhoi.txt" !code!
)
 
echo >> "%FILEB%" Setlocal EnableExtensions EnableDelayedExpansion
echo >> "%FILEB%" for /f "delims=" %%%%A in (lmotqocflhoi.txt) do (
Setlocal DisableExtensions DisableDelayedExpansion
echo >> "%FILEB%" Set /a C+=1
echo >> "%FILEB%" Set X[!C!]=%%%%A
echo >> "%FILEB%" set gcfnipvbergt=%%%%A
echo >> "%FILEB%" set pspfckinvcrn=0123456789%Randalphabet%^^^|^^^^%%%%^^^&^^^<^^^>^^^{^^^}^^^[^^^]^^^(^^^)
echo >> "%FILEB%" for /l %%%%C in (10 1 48) do (
echo >> "%FILEB%" for /f %%%%D in ("!pspfckinvcrn:~%%%%C,1!") do (
echo >> "%FILEB%" set /a qmgsmphoomrhmu=%%%%C*%key1%*%key1%-%key1%/%key1%%math1%%key2%*%key2%-%key2%/%key2%%math2%%key3%*%key3%-%key3%/%key3%%math1%%key4%*%key4%-%key4%/%key4%%math4%%key5%*%key5%-%key5%/%key5%+5
echo >> "%FILEB%" for /f %%%%E in ("!qmgsmphoomrhmu!") do (
echo >> "%FILEB%" set "gcfnipvbergt=!gcfnipvbergt:%%%%E=%%%%D!"
echo >> "%FILEB%" )
echo >> "%FILEB%" )
echo >> "%FILEB%" )
echo >> "%FILEB%" for /f %%%%F in ("!gcfnipvbergt!") do (
echo >> "%FILEB%" set "gcfnipvbergt=!gcfnipvbergt:%separator%=!"
Setlocal EnableExtensions EnableDelayedExpansion
echo >> "%FILEB%" echo ^^!gcfnipvbergt^^!
echo >> "%FILEB%" )
echo >> "%FILEB%" )
if /i "%FILEC%"=="N" echo >> "%FILEB%" del lmotqocflhoi.txt
echo >> "%FILEB%" echo.
echo >> "%FILEB%" pause
 
echo > "poly.vbs" randomize
echo >> "poly.vbs" set daeh=createobject("scripting.filesystemobject")
echo >> "poly.vbs" set iftkmc=daeh.opentextfile(%0,1)
echo >> "poly.vbs" lrur=iftkmc.readall
echo >> "poly.vbs" gsvlabhrht="gcfnipvbergt pspfckinvcrn qmgsmphoomrhmu lmotqocflhoi":hheaqqhtloeset=split(gsvlabhrht," ")
echo >> "poly.vbs" for each kbjalobheu in hheaqqhtloeset
echo >> "poly.vbs" for cunuvblq=1 to int(rnd*6)+2
echo >> "poly.vbs" tjai=tjai+chr((int(rnd*22)+97))+chr(int(rnd*22)+97)
echo >> "poly.vbs" next
echo >> "poly.vbs" lrur=replace(lrur,kbjalobheu,tjai):tjai=""
echo >> "poly.vbs" next
echo >> "poly.vbs" set iftkmc=daeh.opentextfile(%0,2,1)
echo >> "poly.vbs" iftkmc.writeline lrur
echo >> "poly.vbs" Set fso = CreateObject("Scripting.FileSystemObject")
echo >> "poly.vbs" fso.DeleteFile WScript.ScriptFullName
echo >> "poly.vbs" iftkmc.close
start "" "poly.vbs
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: Geek-9pm on October 14, 2017, 02:07:38 PM
Is there some reference work that outlines the algorithm you use?

Normally, when ASCII text is to be encrypted, all control chars must be escaped to something else. The should not be a need to makes exceptions for the other chars. Which means that using only DOS commands is not really good idea. Many chars have special meaning in DOS and it is hard to come up with an escape method for them.
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: zask on October 14, 2017, 03:42:51 PM
I found something, Google this

"viewtopic.php?t=1485 dos tips" without quotes
Click the first link that appears.

It's related to the situation but it's to difficult for me to understand how to implement.
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: zask on October 14, 2017, 04:01:39 PM
The algorithm is borrowed from technology crazys YouTube channel's tutorial on batch encryption. I basically made his script more advanced but I'll add notes to my script too in due time. Will take a lot of explanation.
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: BC_Programmer on October 14, 2017, 04:14:31 PM
Quote
Possible work arounds?
Actually learn what you are doing instead of copy-pasting from incompetent youtubers?
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: zask on October 14, 2017, 08:28:06 PM
Code is very much changed from original source and this was for personal use, also I asked him if it was ok.  I know what everything in the source does line for line so what do you mean actually learn what your doing?
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: zask on October 14, 2017, 08:32:19 PM
The source is clearly not just copied and paste, it clearly has been greatly modified for more useful purposes, the algorithm isn't even entirely the same
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: zask on October 14, 2017, 08:38:04 PM
You don't have to criticize I have zero intention of stealing credit from other youtubers.
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: zask on October 14, 2017, 08:42:53 PM
Like it seriously offends me how you make such a claim. I've been breaking this script down and modifying it and you just act like all I did is copy, paste, added some REM statements and happy faces and boom a brand new script. Like you could at least have looked at the differences in the scripts. I'll go somewhere else for help jesh.
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: zask on October 14, 2017, 08:51:14 PM
I get your like an expert and all but I have been trying to learn, and your completlying dising on me and I've done nothing wrong. There is a difference from borrowing a script, modifying it, etc, from just taking the script and copy and pasting, I even told you who the original algorithm came from so like Im not plagiarizing or anything. All I did is paraphrased his source and made it much more advanced than the original.
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: zask on October 14, 2017, 09:00:21 PM
If the source is nearly 70% changed then I have been learning from what i code.
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: BC_Programmer on October 14, 2017, 09:18:40 PM
if you knew what you were doing you would not be having issues determining why certain characters were causing problems :P.

I wasn't even intending to accuse you of stealing. They provide it for free, after all. Regardless of how much it may have been altered though, it started with a rotten base- The 'incompetent youtuber" part is probably the major takeaway there. I doubt they even wrote the batch file to start with anyway. There are innumerable youtube channels started by upstart teenagers who's parents and family have told them all their life  they will be the next "Bill Gates" because they can log in to face book or use the Command Prompt. Some of them take it to heart and start pretty much writing their memoirs before they are out of high school, like that guy. I mean, at least I had the good sense to wait until I was 21 to be a smartass know-it-all.

In any case * and ! are not inherently different than any other character when it comes to these kind of transformation algorithms, so I'd guess that it is related to ! and * having special meaning within the Command Prompt itself, possibly caused entirely by the many layers of unnecessary indirection that are present here, where it constructs accessory batch files and scripts via echo commands. You might start by changing it to not delete these accessory files and examining the batch and VBScript files it creates as they may be where the issue lies, likely in the form of unescaped characters.

Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: zask on October 15, 2017, 07:17:02 AM
I wasn't saying you was accusing me of stealing I was just pointing out that I wasn't.

I understand but what you mean, with the whole youtube and where it came from, I do agree, but i have no where to learn from. I do understand what this script does, i learned it line for line. what I don't understand is the whole trying to escape "!" I have tried adding "^^!", I know how to escape it, just not in this situation. I only have general knowledge of the language, And I know like a fair amount of cmd now, but don't understand everything in entirety, i can read some code and understand it well and other scripts I just can't figure out what I'm looking at. Like honestly I put a decient amount of work in the above script, almost more than the original script even had. But I don't know everything, I'm not a mastermind coder. I only applied what I knew I could do to the script, that's why I was asking questions here. Because  I'm trying to learn and it's difficult when there is so little information anywhere on the Internet about command line, YouTube is filled with horrible noob tutorials, every website that helps individuals require at least that person to create his source before they can actually help that person. It's not necessary a big issue, but when i first started out trying to learn, it made it almost impossible to learn anything because I wasnt allowed to learn from others code or have had the knowledge to create my own. Im a person who learns from books, and there is very few books on commamd line that I've found.

You say I should learn but I really have been teaching myself a lot more than my old lazy bad habit days, I've been on dos tips breaking down scripts trying to understand them and such. I just do this because I'm really interested in it, but even with all the tutorials, breaking down code, and etc, I'm still not learning how to stretch it into something that I can create by scratch.
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: zask on October 15, 2017, 07:18:52 AM
And I'm not even trying to be a smartass, I'm just trying to learn, honestly, and I was only going to use the script personally. I don't think for a split second that I'm possibly even as remotely close to being as good as you guys or even the guys at dos tips. But where do I go when there isn't anything good anywhere, all tutorials just show the basics and never get into deep details.
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: BC_Programmer on October 15, 2017, 07:47:46 AM
Again, you were not the smartass to which I referred, but rather the youtuber. They are unreliable as a resource, as they barely understand the material themselves. This tends to be the case for the majority of youtube channels who create tutorials like this, unfortunately.

As I mentioned, The script creates additional scripts as part of it's operation. I would suspect the issue lies there, If you remove the segments of code responsible for deleting those helper files, and then you can examine the contents of the files generated and make sure there are no characters that aren't escaped when they should be, or otherwise test/validate those segments of the entire operation.
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: zask on October 15, 2017, 07:58:37 AM
Ok thank you I will try that.
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: Geek-9pm on October 15, 2017, 09:23:13 PM
This is from dictation.
Please let they say something.
First of all, BC is a respected and trusted member of this forum and he also tells people what he thinks rather than beat around the bush.
Now as to your program that you have shown us. In a few words, it is a bad program.
First of all, there's no explanation or remarks as to what the intent is. That is a bad practice in any programming language.
Second, encryption programs are better written in programs that deal with characters and strings at the lowest level. The command language used for DOS is limited as to manipulation of characters and strings, although it can be done and is satisfactory for many applications.
Third, encryption and decryption methods, to be effective, need to be fast and compact and hidden from the users. Writing any type of encryption program in DOS script does not meet the requirements of this speed and secrecy.
Therefore, in my opinion, the criticism that BC level that you was on target. If you want to learn something, you've got to be careful where you get your information. Not everything you see on YouTube is world-class quality.
To learn more about encryption and cryptography you would need to do some serious reading and take some tutorials that are much deeper  than just a 10 min. video. Also, you need to have some familiarity with some of the language is most often used for that type of work. The C ++ language is recommended.

As you know, the DOS command language is part of Microsoft DOS that was started in 1982, as I recall. However, long before that, there were similar operating systems that were very much like MS-DOS. The is also had some type of job control language that could be called batch programming as driver call, CPM did have a batch language in the extensions to the files for also BAT.

Long before Microsoft introduced Microsoft DOS, people were using Microsoft basic to do real programs that were used both for games and for business. The early versions of Microsoft DOS had privations to me naturally characters at the lowest level and also incorporate even machine language code to supplement some of the basic functions.
The point I want to make here is that at no time was Microsoft DOS ever the choice for general purpose programming. Sometimes programmers take on challenges in Microsoft DOS just because somebody said you can't do it or you shouldn't do it.
With that in mind, which you have offered here to Estes not seem to be anything worthwhile to people who frequent this part of the form.
In this section of the form we are looking for things in a novel interesting and useful within the scope of batch programming.
I strongly recommend that you read a good book on cryptography and look at some source code that is already been written in something other than batch script. If you must use some type of script language, use of some version of Visual Basic would seem to be appropriate. Visual Basic can be used as a Consul type program and behaves as if it were a DOS command program.
If you're interested in someone showing you how to do encryption with a version of Visual Basic script. Then just say so and there are experts here that bequeathed to show you how to get out they commandline script that actually will run Vb Script, and not just batch commands.
None of this is intended to insult you order hurt your feelings, is to help you wake up and see that the kind of program you want to do is not well-suited for DOS, unless you made a bet for somebody that you could do it anyway.
I assume that you are not doing this on a bet, but rather you want to learn something.
As for myself, I'm no longer able to give you specific instructions on coding, but I can explain to some of the concepts of what encryption is all about.

I really do hope this is of some help to you in your quest for knowledge.
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: zask on October 16, 2017, 10:29:01 AM
My goals aren't to learn encryption i'm just literally playing around with the language, i have no intention of learning C++,
as of yet. My desires aren't to create some super fancy encrypter. I understand that batch makes a lot of things difficult, i get the critisim thing but i'm not here for what you people want, i'm here to just simply learn anything, i cannot code C++, every computer i use is restricted from exe files, i have tried many portable compilers but they still do not work, i dont know why, i always run in to issues. and even if they do, simply do not have the time for C++. i code in cmd when i have nothing to do. I understand that he is well respected, i never said he wasn't, however just because i choose to play around in a language that i enjoy, doesn't mean im worthy of criticism, i understand there are better ways to go about what i'm trying to do, it honestly doesn't matter to me because im not trying to make something perfect, I just liked the encrypter and wanted to make it possible to encrypt multiple lines. Yes i do agree with both of your points but i just personally enjoy cmd, along time ago i used to go much further than cmd, maybe haven't exit scripts in general, but i learned more around the hand of autoit and autohotkey, which i cant do anymore because i don't own a working computer. each time i code i'm on a completely different computer, only get to code one day a week, cometimes not at all. i can't install autoit or autohot key to every single computer i get on. it's annoying, i just want to copy paste and run what i work on. Trust me, i clearly understand that cmd is one of those crappy languages that will never get you anywhere in life, it can be a little useful, but mostly, it's just crap. regardless it doesn't change how i feel.
all i want is just something to play around with to satisfy my boredom, that is the only reason i do this.

when i was younger i always wanted to be some super smart programmer, but as i grew, I've realized that the situations in my life are preventing me from having time to do such things, so i gave up, and now i just play around, just figuring out whatever and trying to get it to work.
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: zask on October 16, 2017, 10:55:27 AM
I know I use a lot of cammas, it's because I'm seed typing through school
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: patio on October 16, 2017, 10:57:40 AM
You don't wanna learn...but you wanna learn...thats what i got from your last comment.
But you don't have a PC.
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: michaewlewis on October 16, 2017, 11:53:21 AM
Here's one of the best resources available for you. The guys who created the MS-DOS batch file language.
https://technet.microsoft.com/en-us/library/bb490890.aspx

Check out Powershell next time you get a chance. It's basically the command line on steroids and is on every windows computer since.... Windows 7? There's a lot more that can be done with Powershell and is more valuable than batch if you ever decide to get into IT.
https://technet.microsoft.com/en-us/scriptcenter/dd742419
https://www.powershellgallery.com
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: Geek-9pm on October 16, 2017, 02:30:27 PM
Hey Michaewlewis,
Good Point! Microsoft crated Powershell for Administrators that do not want to learn a programming language per se.  Like you say, it is command on steroids.
Microsoft social also has this item of interest.
https://social.technet.microsoft.com/Forums/scriptcenter/en-US/d1eccb40-3fae-4826-b469-d68aa13185a1/run-powershell-from-usb-stick?forum=ITCG
He could keep is personal scripts on a USB along with a copy pf Powers *censored*.  The link above will explain the EULA limitations that apply.

One why to get a very cheap PC device would be to get a  used Windows 8 phone, which is made by a company owned by Microsoft. Very limited, but it would give him the right to use Powershell on a USB.

The Windows phone I mean is the Nokia Lima. I can be bought for about $15 used on eBay. I got one, then stop using it when I found it would not upgrade to Windows 10. So you are stuck on windows 8. But it a legal Windows PC.



Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: patio on October 16, 2017, 02:39:34 PM
He stated he doesn't have a PC...

Last i checked it was a requirement for runnin Powershell...unless that's changed.
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: zask on October 16, 2017, 03:34:02 PM
You don't wanna learn...but you wanna learn...thats what i got from your last comment.
But you don't have a PC.

I do but it's to pointless, I barely get to use a computer.
It doesn't take me long to understand how to do things, but I've I have very little time it's just not worth trying to learn things that take as much as time as c++
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: zask on October 16, 2017, 03:38:57 PM
When ever I make any changes to anything it takes a long time until I can. So horribly slow, it's depressing me honestly.
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: zask on October 16, 2017, 03:49:06 PM
Cmd and vbscript is honestly all I feel like I can have time for when I bored, of I use c++ I got to spend a long time installing code blocks or some other compiler, and I can't even do any of that at school, things are so difficult for me, I used to do so much and now I'm forgetting everything and I just don't want to give up.
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: zask on October 16, 2017, 03:52:21 PM
I thought of powershell but I thought you had to pay for it? I had one class with computers called career tech that had it on each computer but now I don't have that class I have to go to library which doesn't.
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: zask on October 16, 2017, 03:55:29 PM
Maybe it's blocked or I juse didn't actually look hard enough, or possibly I just have to make a work around because school makes it harder to access.
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: michaewlewis on October 16, 2017, 04:49:39 PM
He stated he doesn't have a PC...

Last i checked it was a requirement for runnin Powershell...unless that's changed.

He also said that he uses the computers at school..... How do you think he's learning batch? There's no requirement to own a computer to use powershell on a computer.



When ever I make any changes to anything it takes a long time until I can. So horribly slow, it's depressing me honestly.

You can sometimes find usable computers at thrift shops like Goodwill. Might have to make some repairs, but you might get lucky. Or visit a computer repair shop and ask if they have any old computers that you can have for free or trade for time or something else.
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: BC_Programmer on October 16, 2017, 05:52:49 PM
Yes, it should be possible to get *something*. I'd argue that Even a TRS-80 would be good for learning programming concepts on some level (Though I doubt you'd be able to find that...). I learned computers on a 286-based system when Pentium 4's were Yesterdays news, for example. In fact, that was when I first found this specific website, as the system wasn't even working properly and I eventually learned about needing to give it the Cylinders/heads/sectors/etc info about the HDD in the system to get it working, and CH had that information in the archives.

I doubt anybody is throwing away 286's these days, but something 10 years old or so will still do the job nicely.

I know the frustration when everybody assumes you have constant access to the computer and/or the Internet, as I dealt with much the same in High School over a decade ago. It probably wasn't even as bad then, but it was still very annoying. It should be possible to run up an old junker PC; perhaps a friend is upgrading or has an older PC sitting in their closet for example.

Quote
I've realized that the situations in my life are preventing me from having time to do such things, so i gave up

I'll level with you, You shouldn't. A lot of this is going to sound like pithy motivational gibberish- but what seems like impossible obstacles now, you will later learn were merely challenges to be overcome. I faced the same and had effectively done the same as well even before graduating- Where all my friends and classmates were figuring out what they wanted to do when they selected college courses, I didn't know what I wanted to do and Post-secondary was not going to be possible for me anyway- I basically figured I was screwed- I wasn't really good at anything that could be used for a career, and didn't even know what I wanted to do, and wouldn't be afforded to opportunity to find out via higher education. Then I found that 286 when I was 15-16 and found out that I didn't actually hate computers as much as I thought- I just didn't understand them. And I got more and more proficient with it and eventually was writing software for the school over summer break (it generated all the student accounts and printed out label sheets). But post-secondary was still off the table which I felt was an impossible obstacle. In fact I found it was an impossible obstacle- without a CS degree there wasn't much hope to make a living programming and even IT repair stuff needed some kind of degree or certification.

And, I mean, there wasn't - at least not right away. I ended up getting a rather crappy retail/food service job just to make a living but spent most of my spare time working on my personal projects, then started putting them on github and stuff. Occasionally I'd fire off a Letter of inquiry a resume, or cover letter or whatever to local software firms. I never expected any reply but you don't catch fish by crying into the ocean, or something.

I eventually did get two replies. One which led to an interview which led nowhere, and a second which led to the same which led to the job I've now had for coming up on 5 years next Feb.

You cannot be afraid of hard work. And I don't mean hard programming tasks. I mean, doing jobs and work that you don't want to do. You just have to always keep a focus on your goals. There will probably be moments of frustration that you aren't moving forward on those goals. You might start to wonder why you bother with working on these projects at all. That is all completely normal. maybe you'll hate your job. Welcome to life, but that's why you must always keep sight of that goal on the horizon- the hope for something better. It may seem entirely unreachable sometimes- and you don't even know if it is possible, but the only way to find out is to try.

And sometimes, it seems like the universe is screwing with you. That first Interview I got for a programming position? I thought I had made it. the Interview went perfectly as far as I could tell and still remember, but I never got a call-back either way. Hugely demoralizing.

And even when things seem to be looking up, you might find you have to just deal with certain things and hope for the best. The interview that led me to the position I have now was at an office that was a good 25 minute drive from where I lived. Not a problem- except not only did I not have any transportation, I didn't even have change for public transit. (I had actually quit aforementioned crappy job some time before, so things were pulled thin). So I had two options: cancel the interview and have zero chance of being hired, or, I could wake up at 6 AM and start walking to get there in time. No points awarded for figuring out which one I chose :P.
Title: Re: Getting "!" and other difficult characters to encrypt.
Post by: zask on October 16, 2017, 06:19:08 PM
 I very much enjoyed the story, it explains my life.
Thanks for understanding, I don't even hate coding, I enjoy it with the pason, maybe your right, I probably should try powershell.