Skip to content

Commit 109c72d

Browse files
committed
Clean up notebooks + pin jupyter extension
1 parent 9e877ba commit 109c72d

6 files changed

Lines changed: 24 additions & 24 deletions

File tree

‎.devcontainer/devcontainer.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"customizations": {
1212
"vscode": {
1313
"extensions": [
14-
"ms-toolsai.jupyter",
14+
"ms-toolsai.jupyter@2025.7.0",
1515
"ms-python.python",
1616
"ms-python.black-formatter",
1717
"humao.rest-client",
@@ -26,4 +26,4 @@
2626
},
2727
"postCreateCommand": "bash .devcontainer/setup-container.sh",
2828
"postAttachCommand": "bash .devcontainer/setup-terminal.sh",
29-
}
29+
}

‎.vscode/settings.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
"github.copilot.enable": {
2121
"*": false
2222
}
23-
}
23+
}

‎encryption/hashing.ipynb‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"outputs": [],
2929
"source": [
3030
"# Let's look at a message that contains Unicode characters - any modern text!\n",
31-
"message = \"Hello, \uc548\ub155\ud558\uc138\uc694, \u00a1\u00c1rv\u00edzt\u0171r\u0151 t\u00fck\u00f6rf\u00far\u00f3g\u00e9p! @ \ud83c\udfeb\ud83d\udcda\ud83d\udcbb\ud83c\udf93\"\n",
31+
"message = \"Hello, 안녕하세요, ¡Árvíztűrő tükörfúrógép! @ 🏫📚💻🎓\"\n",
3232
"print(message)\n"
3333
]
3434
},
@@ -48,7 +48,7 @@
4848
"metadata": {},
4949
"outputs": [],
5050
"source": [
51-
"bytestring = \"Hello, \uc548\ub155\ud558\uc138\uc694, \u00a1\u00c1rv\u00edzt\u0171r\u0151 t\u00fck\u00f6rf\u00far\u00f3g\u00e9p! @ \ud83c\udfeb\ud83d\udcda\ud83d\udcbb\ud83c\udf93\".encode(\"utf-8\")\n",
51+
"bytestring = \"Hello, 안녕하세요, ¡Árvíztűrő tükörfúrógép! @ 🏫📚💻🎓\".encode(\"utf-8\")\n",
5252
"print(bytestring)\n"
5353
]
5454
},
@@ -111,7 +111,7 @@
111111
"outputs": [],
112112
"source": [
113113
"\n",
114-
"bytestring = \"My message to the world: Say H\u00e4llo to a better hash!\".encode(\"utf-8\")\n",
114+
"bytestring = \"My message to the world: Say Hällo to a better hash!\".encode(\"utf-8\")\n",
115115
"print(\"Original message: \")\n",
116116
"print(bytestring)\n",
117117
"\n",
@@ -241,4 +241,4 @@
241241
},
242242
"nbformat": 4,
243243
"nbformat_minor": 5
244-
}
244+
}

‎encryption/password_manager.ipynb‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@
8080
" try:\n",
8181
" result = encrypt(test_password)\n",
8282
" assert result == expected_hash, f\"Expected {expected_hash}, but got {result}\"\n",
83-
" print(\"\ud83c\udf89 Great job! Your encryption function works perfectly!\")\n",
83+
" print(\"🎉 Great job! Your encryption function works perfectly!\")\n",
8484
" return True\n",
8585
" except Exception as e:\n",
86-
" print(\"\u274c Not quite right. Make sure you're using SHA256 and hexdigest()\")\n",
86+
" print(\"❌ Not quite right. Make sure you're using SHA256 and hexdigest()\")\n",
8787
" print(f\"Error: {str(e)}\")\n",
8888
" return False\n",
8989
"\n",
@@ -121,10 +121,10 @@
121121
" assert users[\"alice\"] == encrypt(\"newpassword123\")\n",
122122
" assert users[\"alice\"] != old_hash\n",
123123
"\n",
124-
" print(\"\ud83c\udf1f Excellent! Your function can both add new users and update existing ones!\")\n",
124+
" print(\"🌟 Excellent! Your function can both add new users and update existing ones!\")\n",
125125
" return True\n",
126126
" except Exception as e:\n",
127-
" print(\"\u274c The add_user function needs some work\")\n",
127+
" print(\"❌ The add_user function needs some work\")\n",
128128
" print(f\"Error: {str(e)}\")\n",
129129
" return False\n",
130130
"\n",
@@ -146,10 +146,10 @@
146146
" assert check_password(users, \"alice\", \"password123\")\n",
147147
" assert not check_password(users, \"alice\", \"wrong\")\n",
148148
" assert not check_password(users, \"bob\", \"any\")\n",
149-
" print(\"\ud83c\udfc6 Perfect! Your password checking system is secure!\")\n",
149+
" print(\"🏆 Perfect! Your password checking system is secure!\")\n",
150150
" return True\n",
151151
" except Exception as e:\n",
152-
" print(\"\u274c The check_password function needs some work\")\n",
152+
" print(\"❌ The check_password function needs some work\")\n",
153153
" print(f\"Error: {str(e)}\")\n",
154154
" return False\n",
155155
"\n",
@@ -175,10 +175,10 @@
175175
" assert not add_user_with_requirements(users, \"user2\", \"short1\")\n",
176176
" assert not add_user_with_requirements(users, \"user3\", \"nodigits\")\n",
177177
" assert not add_user_with_requirements(users, \"user4\", \"nocaps123\")\n",
178-
" print(\"\ud83c\udfaf Excellent! Your password requirements are working!\")\n",
178+
" print(\"🎯 Excellent! Your password requirements are working!\")\n",
179179
" return True\n",
180180
" except Exception as e:\n",
181-
" print(\"\u274c Password requirements need adjustment\")\n",
181+
" print(\"❌ Password requirements need adjustment\")\n",
182182
" print(f\"Error: {str(e)}\")\n",
183183
" return False\n",
184184
"\n",
@@ -220,10 +220,10 @@
220220
"\n",
221221
" assert users[\"user1\"] != encrypt(\"same_password\")\n",
222222
"\n",
223-
" print(\"\ud83c\udf1f Fantastic! Your global salt system is working!\")\n",
223+
" print(\"🌟 Fantastic! Your global salt system is working!\")\n",
224224
" return True\n",
225225
" except Exception as e:\n",
226-
" print(\"\u274c Global salt implementation needs some work\")\n",
226+
" print(\"❌ Global salt implementation needs some work\")\n",
227227
" print(f\"Error: {str(e)}\")\n",
228228
" return False\n",
229229
"\n",
@@ -253,4 +253,4 @@
253253
},
254254
"nbformat": 4,
255255
"nbformat_minor": 5
256-
}
256+
}

‎encryption/public_key_cryptography.ipynb‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
"assert PRIVATE_KEY_FILE.exists(), f\"Private key not found at {PRIVATE_KEY_FILE}. CWD: {Path.cwd()}\"\n",
4646
"assert PUBLIC_KEY_FILE.exists(), f\"Public key not found at {PUBLIC_KEY_FILE}\"\n",
4747
"\n",
48-
"print(f\"\u2713 Found private key: {PRIVATE_KEY_FILE}\")\n",
49-
"print(f\"\u2713 Found public key: {PUBLIC_KEY_FILE}\")\n"
48+
"print(f\"✓ Found private key: {PRIVATE_KEY_FILE}\")\n",
49+
"print(f\"✓ Found public key: {PUBLIC_KEY_FILE}\")\n"
5050
]
5151
},
5252
{
@@ -98,7 +98,7 @@
9898
"\n",
9999
"encrypted_message = public_key_cipher.encrypt(short_secret_message)\n",
100100
"print(\"Encrypted message:\")\n",
101-
"print(encrypted_message)\n",
101+
"print(encrypted_message.hex())\n",
102102
"\n",
103103
"ENCRYPTED_MESSAGE_FILE = PROJECT_FOLDER / \"encrypted_message.bin\"\n",
104104
"with open(ENCRYPTED_MESSAGE_FILE, \"wb\") as f:\n",
@@ -154,9 +154,9 @@
154154
"name": "python",
155155
"nbconvert_exporter": "python",
156156
"pygments_lexer": "ipython3",
157-
"version": "3.13.0"
157+
"version": "3.13.5"
158158
}
159159
},
160160
"nbformat": 4,
161161
"nbformat_minor": 5
162-
}
162+
}

‎encryption/symmetric_encryption.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
"name": "python",
125125
"nbconvert_exporter": "python",
126126
"pygments_lexer": "ipython3",
127-
"version": "3.11.0"
127+
"version": "3.13.5"
128128
}
129129
},
130130
"nbformat": 4,

0 commit comments

Comments
 (0)