We’ve talked about data strings up to this point, but that we must also consider how to keep the data secure. This video shows the importance of encryption to cybersecurity.
Caesar's Shift on the Gettysburg Speech
Simply add +1 to the ASCII value of each plaintext character
Save the shifted values to a new ciphertext file
Follow along below with the trinket!
Note: The referenced "gettysburg.txt" is on the second tab of the trinket. You do not need to do anything to import it, it is already called in line 28 and will call the Gettysburg address.
Desired Output:
Gpvs tdpsf boe tfwfo zfbst bhp pvs gbuifst cspvhiu gpsui po uijt dpoujofou b ofx obujpo, dpodfjwfe jo mjcfsuz, boe efejdbufe up uif qspqptjujpo uibu bmm nfo bsf dsfbufe frvbm. Opx xf bsf fohbhfe jo b hsfbu djwjm xbs, uftujoh xifuifs uibu obujpo, ps boz obujpo tp dpodfjwfe boe tp efejdbufe, dbo mpoh foevsf. Xf bsf nfu po b hsfbu cbuumfgjfme pg uibu xbs. Xf ibwf dpnf up efejdbuf b qpsujpo pg uibu gjfme, bt b gjobm sftujoh qmbdf gps uiptf xip ifsf hbwf uifjs mjwft uibu uibu obujpo njhiu mjwf. Ju jt bmuphfuifs gjuujoh boe qspqfs uibu xf tipvme ep uijt.