Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

You receive an encrypted text(attached) which was encrypted using a substitution

ID: 3889186 • Letter: Y

Question

You receive an encrypted text(attached) which was encrypted using a substitution cipher. Can you find the key?

Tip: Google Letter frequency and remember (reuse) what you have implemented for the assignment. For instance, there is only a certain amount of 1, 2 or 3 wetter words where some are very common.

Note, the text does not contain upper cases letters.

Note2, special characters, numbers, etc are simply ignored.

Note3, use your previous findings and not findings you find online!

rev_key = {'a':'', 'b':'', 'c':''} #incomplete key; fill it with your findings

def decipher(a_string):

"""here goes code to decipher the text"""

  

global rev_key

  

decrypt = ""

  

return decrypt

def

get_text1_freq_dict():

  

d = {}

  

#returns a dictionary containing the frequencies in the format

#X.XXX (e.g., 0.011 or 0.129) for the letters. A sample entry

  

# would be freq = {'a':0.011}

  

return d

def get_text2_freq_dict():

  

d = {}

  

#returns a dictionary containing the frequencies in the format

  

#X.XXX (e.g., 0.011 or 0.129) for the letters. A sample entry

  

# would be freq = {'a':0.011}

  

return d

  

## please included below any other functions that you

## implemented to solve the challenge; furthermore

## please write a paragraph on how you approached

## the problem.

pouurb sddypyn b fwbx ts tmy oxrtyn utbtyu dsp b doww bxn raaynrbty ashy tsjbpn xspabwrebtrsxsp b pyutspbtrsx sd nrfwsabtrc tryu --rx tmy sfyxrxz jyyqu sd fpyu rnyxt nsxbwn tpoaf'u bnarxrutpbtrsx, tmy qpyawrx csxdrpayn jynxyunbg pyawrx ufsqyuabx nartpg fyuqsh tswn pyfsptypu sx jynxyunbg tmbt "sd csopuy" pouurb dwsbtyn fpsfsubwu uocm bu tmru sxy ts tmy ou asucsj ugutyabtrcbwwg bnhscbtyn dsp b pyuoaftrsx sd tmy nrbwszoy, dsp bx ylcmbxzy sd sfrxrsx bxn dsp bttyaftu bt drxnrxz ksrxt uswotrsxu," fyuqsh ubrn. "iot, oxdsptoxbtywg, rt ubj xs fyuqsh ubrn pouurb'u fpsfsubwu mbn csay tmpsozm rx fbptu bxn b uoaabpg sd tmy sddyp jyxt tmpsozm nrfwsabtrc cmbxxywu xyju sd tmy fwbx drput cbay ts wrzmt rx b ioeedyyn xyju pyfspt bdtyp tmy sotwyt sitbrxyn b nscoayxt jmrcm sotwrxyn tmy fpsfsubw b tsf pouurbx nrfwsabt abny nrpyctwg ts tmy ou utbty nyfbptayxt buqyn bisot tmy pyfspt, utbty nyfbptayxt ufsqyujsabx mybtmyp xboypt jsown xyrtmyp csxdrpa xsp nyxg rtu bccopbcg. xboypt ubrn rx zyxypbw typau tmbt tmy ou bxn pouurb umbpy tmy zsbw sd rafpshrxz nrfwsabtrc b pouurbx sddrcrbw csxdrpayn ts cxx tmbt tmy nscoayxt jbu botmyxtrc "jy bpy usppg ts mybp tmbt nscoayxtu gyyf wybqrxz dpsa tmy (tpoaf) b xspabwrey pywbtrsxu, " tmy sddrcrbw ubrn ybpwryp toyunbg, oxnyp uycpytbpg sd utbty tsa umbxxsx ayt jrtm mru pouurbx csoxtypfbpt rx drxwbxn. tmy ayytrxz jbu tmyrp tmrpn sd tmy gybp ts nrucouu us-c csxcypxu,"iot nrn xst ubg rd tmy tjs mbn pyuswhyn bxgtmrxz tmy fpsfsubw, ioeedyyn jpsty, cb dswwsjrxz pouurb'u rxhbursx sd oqpbrxy bxn rxtyphyxtrsx rx ugprb rx tmy csarxz asxtmu, tmy fpsfsubw cbwwyn dsp pouurb bxn tmy ou ts cswwbispbty sx rxdspabtrsx uycoprtg, bdzmbxrutbx, rpbx, oqpbrxy, xsptm qspyb bxn yhyxtobwwg b doww dbcy-ts-dbcy ayytrxz iytjyyx tmy tsf xbtrsxbw uycoprtg sddrcrbwu sd tmy tjs xbtrsxu pywbtrsxu iytjyyx tmy oxrtyn utbtyu bxn pouurb mbhy usopyn csxurnypbiwg urxcy tmy sfyxrxz sd tmy tpoaf bnarxrutpbtrsx, jmyx abxg ylfyctyn tpoaf arzmt iprxz tmy xbtrsxu cwsuyp tszytmyp bu my ubrn pyfybtynwg jbu mru zsbw noprxz tmy cbafbrzx pouurbx arwrtbpg rxhswhyayxt rx oqpbrxy bxn ugprb, bu jyww bu tmy ou rxtywwrzyxcy csaaoxrtg'u csxcwoursx tmbt pouurbx fpyurnyxt hwbnrarp fotrx fypusxbwwg spnypyn bx bttyaft ts aynnwy rx tmy 2016 ou fpyurnyxtrbw ywyctrsx, mbu cbut b umbnsj sx tmy ou urny shyp tmy fstyxtrbw pbffpscmyayxt tmy ou oxnyp tmyx-fpyurnyxt ibpbcq sibab rxcpybuyn ubxctrsxu sx pouurb dswwsjrxz tmy csoxtpg'u bwwyzyn ywyctrsx rxtypdypyxcy, bxn crfpscrtg." pywbtrsxu iytjyyx tmy csoxtpryu narxrutpbtrsx, tmsozm rt ums ju tmbt pouurb qyyfu nsrxz rtu iyut ts rpprtbxtu" rx tmy pywbtrsxumrf. xboypt ubrn tmy ayytrxz fpshrnym bx sffsptoxrtg ts "pbruy voyutrsxu sp dsp tmy ou ts pyutspy bww cmbxxywu -- nrfwsabtrc, arwrtbpg bxn rxtywwrzyxcytmbt mbn iyyx cot ts umottyp usay sd tmy qpyawrx'u dbcrwrtryu rx tmy ou tpoaf ayt jrtm fotrx dbcy-ts-dbcy rx b ucmynowyn ayytrxz bt tmy z20 uoaart rx kowg tmyx ufsqy bzbrx noprxz bx oxbxxsoxcyn csxhypubtrsx bt b nrxxyp dsp jspwn wybnypu noprxz tmy uoaart. tpoaf jyxt sx ts fpsfsuy b ksrxt ou-pouurb cgiyp yddspt, tmyx bdtyp uoutbrxyn cprtrcrua sd tmy fpsfsubw, tpoaf ubrn my qxyj "rt cbx't" mbffyx ouurb pyufsxnyn rx qrxn ts tmy ou' ubxctrsxu bdtyp uyhypbw asxtmu nywbg bxn spnypyn wbpzy cotu rx tmy ou nrfwsabtrc utbdd rx pouurb bpsoxn tmy, ubay tray, tpoaf urzxyn b irww fottrxz aspy ubxctrsxu sx pouurb bxn pyutprctrxz mru birwrtg, ts wrdt tmya my bwus tmbxqyn fotrx dsp dspcrxz tmy ou ts pynocy rtu nrfwsabtrc utbdd rx b csaayxt tmy jmrty msouy wbtyp nyucpriyn bu ubpcbutrc iydspy asucsj'u nybnwrxy dsp tmy ou ts pynocy rtu nrfwsabtrc utbdd rx pouurb, tmy ou spnypyn tmy cwsuopy sd tmpyy pouurbx dbcrwrtryu

Explanation / Answer

def decipher(a_string):

global rev_key

decrypt = ""

return decrypt

def

get_text1_freq_dict():

d = {}

return d

def get_text2_freq_dict():

d = {}

return d

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote