{"id":39,"date":"2025-11-07T15:19:45","date_gmt":"2025-11-07T15:19:45","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/r_najim\/?p=39"},"modified":"2025-11-07T15:19:45","modified_gmt":"2025-11-07T15:19:45","slug":"friday-november-7-2025","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/r_najim\/2025\/11\/07\/friday-november-7-2025\/","title":{"rendered":"Friday November, 7 , 2025"},"content":{"rendered":"\n<p>      Today this free Friday I am working on a project on YouTube a password manager<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=DLn3jOsNRVE&amp;t=2572s\">https:\/\/www.youtube.com\/watch?v=DLn3jOsNRVE&amp;t=2572s<\/a><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>pwd = input(\"What is the master password? \")\n\ndef view():\n    pass\n\ndef add():\n    name = input('Account Name: ')\n    pwd = input(\"Password: \")\n\n    with open('passwords.txt', 'a') as f:\n    \n\n\nwhile True:\n    mode = input(\"Would you like to add a new password or view existing ones (view, add), press q to quit?  \").lower\n    if mode == \"q\":\n        break\n    \n    if mode == \"view\":\n        view()\n    elif mode == \"add\":\n        add()\n    else:\n        print(\"Invalid mode. \")\n        continue<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This part of the code ask you what is were master password <\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>def view():\n     with open('passwords.txt', 'r') as f:\n         for line in f.readlines():\n             data = line.rstrip()\n             user, passw = data.slit(\"|\")\n\ndef add():\n    name = input('Account Name: ')\n    pwd = input(\"Password: \")\n\n    with open('passwords.txt', 'a') as f:\n        f.write(name + \"|\" + pwd + \"\\n\")<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This part of the code opens a file for your password <\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Today this free Friday I am working on a project on YouTube a password manager<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-39","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/posts\/39","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/comments?post=39"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/posts\/39\/revisions"}],"predecessor-version":[{"id":40,"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/posts\/39\/revisions\/40"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/media?parent=39"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/categories?post=39"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/tags?post=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}