Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kelly Manahan #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions security/PracticalSecurity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
In order to protect myself the simplicist thing i did was change my password to something that has at least 10 characters, I also made up words for my password. I have a real problem with remembering my password, I can always store my passwords in something at home or use a service that charges to keep my passwords safe (but that might be a risk if they are somehow hacked).

I have also implemented two factor authentication for some of my personal accounts.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

13 changes: 13 additions & 0 deletions security/ThreadModel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Mary owns a local flowershop. She has regular customers for large events. She saves the credit card information for convience. She has lots of competitors but,has no known enemies.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done and well written! :+1


Mary stores all the clients information in a computer at the floral shop. The computer uses business management software and business email services. To access her clients information she uses an encrytped password. She stores this password in her phone which can be unlocked with a fingerprint scan.

Possible adversaries are other floral shops who want to gain access to her clients and ruin her business. She may also have unknown enemies that want to see her business fail.

In order to protect the client it is important to know if the business management software she uses is secure enough.

She should also ensure that she does not download any possible virus that can harm her computer.

She must also make sure she keeps her password secure and be sure no one has access to it. Any person posing as customer support trying to gain access to her person information should be viewed as a possible threat.

To keep her password from being stolen, she should update her password periodically and make sure no one will ever have access to it. She should also make sure she has the correct mobile security installed onto her phone. It might also be good if she stores her clients personal information at her home where there is less risk.
25 changes: 25 additions & 0 deletions theory/RegexAnswers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
let regex1 = /(antelope)s? (rock)s? out/g;

console.log(regex1.test("antelope rocks out"));
//console.log(regex1.test("antelopes rock out"));

let regex2 = /[^b]oat/g;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we did [^b], then the words coat and oat will match. Better to use a capture group:

(g|m)oat


//console.log(regex2.test("goat"));
console.log(regex2.test("moat"));

// Regex that matches dates in YYYY-MM-DD format. (Year can be 1-4 digits, and month and day can each be 1-2 digits). This does not need to verify the date is correct (e.g 3333-33-33 can match).

// 2000-10-12

// 1999-1-20

// 1999-01-20

// 812-2-10

let date = /(\d{4})-(\d{1,})-(\d{1,})/g;

//console.log(date.test("2000-10-12"));
//console.log(date.test("1999-1-20"));
console.log(date.test("812-2-10"));
Binary file added theory/lion_state.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.