Cryptography and Encoding Assessment Reference Card

Assessment Administration and Toolset

  • Data conversion tools: BinaryHex Converter executes conversions across binary, hexadecimal, and ASCII character representations.

  • Cryptanalysis and hashing platform: dCode provides utilities for Base64 encoding/decoding, cryptographic hash generation (SHA-1, SHA-256), and classical ciphers including Caesar, Affine, and Vigenere.

  • Advanced cryptographic utilities: Dedicated web interfaces perform AES Encryption & Decryption (symmetric) and RSA Encryption & Decryption (asymmetric).

  • Text handling requirements: Input text must preserve exact capitalization and punctuation, including terminal periods; trailing spaces and empty line breaks must be removed before cryptanalysis.

Data Representation and Encoding

  • Binary to hexadecimal: The binary stream 00110011 converts to the hexadecimal value 3333.

  • Hexadecimal to binary: The hexadecimal value 2F converts to the 88-bit binary value 00101111.

  • Hexadecimal stream to ASCII: The encoded sequence 41 20 62 72 65 61 63 68 20 61 6c 6f 6e 65 20 69 73 20 6e 6f 74 20 61 20 64 69 73 61 73 74 65 72 2c 20 62 75 74 20 6d 69 73 68 61 6e 64 6c 69 6e 67 20 69 74 20 69 73 2e decodes to: "A breach alone is not a disaster, but mishandling it is."

  • Base64 message decoding: The Base64 string Q3liZXJzZWN1cml0eSBpcyBub3QgYSBzZXQgb2YgcHJvZHVjdHMgLSBpdCdzIGEgc2V0IG9mIHByYWN0 aWNlcy4= decodes to: "Cybersecurity is not a set of products - it's a set of practices."

Cryptographic Hashing and Integrity Verification

  • SHA-256 digest mapping: The digest feba6843a3e904c17c4faaa4f0d491767997e696508ce4d942bb0109fc4ecea0 corresponds to the plaintext: "The most important part of a secret password is the secret part".

  • SHA-1 integrity auditing: Document verification against baseline digests confirms that none of the files have been altered:

    • Cybersecurity Objective Domains: 8117c40c80f4e86e00f88b7bdf47976b52e308ce

    • Networking Objective Domains: 18e4274cfbc3436bd11546adaf88b2efe5931677

    • Network Security Objective Domains: 25b7b09e00ac85f40eb09aa50ec304717c9151e3

    • Python Objective Domains: e156c2dfaed2f2793309e2bc43df9d558e079872

Classical Ciphers and Cryptanalysis

  • Caesar cipher left-shift: Encrypting "Hackers are always one step ahead of you" with a left shift of 1515 yields "Wprztgh pgt palpnh dct hite pwtps du ndj".

  • Caesar cipher brute-force recovery: Decrypting "Wx cnlqwxuxph cqjc’b lxwwnlcnm cx cqn rwcnawnc rb dwqjltjkun" yields "No technology that’s connected to the internet is unhackable".

  • Affine cipher encryption: Encrypting "Encryption is the defense against the dark arts in the digital realm" using the transformation y=7x+16y = 7x + 16 yields "Sdefcrtukd um tns lszsdms qgqudmt tns lqfi qftm ud tns lugutqp fsqpw".

  • Affine cipher decryption: Decrypting "Qwlansaqcnuxw us g spgnav nasdytsulujuxw" using y=5x+6y = 5x + 6 yields "Cybersecurity is a shared responsibility".

  • Clue-assisted Affine cryptanalysis: Decrypting "Woewscinz odi hwbo bbpinkvky. Qtejuv dosy vaulvhfxc, zce’d ssmza hyot ktins govdxi yoe cls mrz bvflf elwfv dosy" via the formula y=9x+17y = 9x + 17 recovers: "Passwords are like underwear. Change them regularly, don’t leave them where people can see and never share them".

  • Vigenere cipher encryption: Encrypting "The security of our digital world starts with strong passwords" using the key CYBERFUN generates "Vff wvhoekrz sw toe fghmkff jqpmh jyuevq xmkm mgtmok gfmfymshj".

  • Vigenere cipher decryption: Decrypting "Ewciixypwpjxp nm n vmq tiniekrz jfw uaa zvwzsyfu" using the key CYBERFUN recovers "Cybersecurity is a top priority for any business".

  • Multi-stage hex and substitution cryptanalysis: Converting the hex stream 536e7566616e... and decrypting with the key ENIGMA yields: "Before you leave the scene, clear your desk and screen".

Symmetric Cryptography (AES)

  • AES-128-ECB encryption: Encrypting "Cybersecurity isn’t just a tech problem, it’s a human problem." using the symmetric key LoudounCtyPubSch produces the Base64 ciphertext svEn/BE6XbYd1L6u5X0mlbH5nqhgh1SPHauantQLYlAYI7SJleT7LFRxNlueWpX9N0vZWJU9ImkjIfMQ6T7gsVu8DkZBPSDtPfC2CL1U9Ck=.

  • AES-128-ECB decryption: Decrypting svEn/BE6XbYd1L6u5X0mlT/LzvMONOOcJHOHZcjnQYa4BtatwngBoegcMr17SW+q7KuWX2QEkauAdVFsy HYJNw== using key LoudounCtyPubSch recovers: "Cybersecurity is not a destination; it’s a journey."

  • AES-128-CBC encryption: Encrypting "Verify, verify, verify." with symmetric key LoudounCtyPubSch and Initialization Vector IV4LoudounCounty yields YkJax6OvDxThtYBREo52sAH6fQYPVTxQhXMJfAwnPEw=.

  • AES-128-CBC decryption: Decrypting DeF1c/m+MH1PMJjB7OruSgsZtRFiY5H+8TUjHAZFSUM= with key LoudounCtyPubSch and Initialization Vector IV4LoudounCounty recovers: "Don't take the bait."

Asymmetric and Hybrid Cryptosystems (RSA & AES)

  • RSA asymmetric decryption: Decrypting the payload DdPdkh/0Vth6qkmUZzRLDvrHqopd0D7rfJU82g4eZt3Mss7xKMyAq4vigaUQmlUzekW2Ll29BaKSG0fKtP+1xg== with the corresponding public key recovers: "The best defense is a good offense."

  • Hybrid envelope cryptanalysis: Decrypting the RSA-wrapped AES key f8Z8EwTft4o8h54ZL6Pumm3Nw1WmV55iqLmS6ucuBKba9Sjxiqtriqfucyl1PvBqIzo6SRmxp Kh/PAxiXheVqg== and subsequently decrypting the AES/ECB payload gier0ABkx14L/x59TS9dxC0DY+TTaL7duzcMfhH9VQxbyRLpf+vBVpUFEjWYL3oI reveals: "Hackers are always one step ahead of you".