Posts

Showing posts from December, 2021

אבטחת מידע

Image
  אבטחת מידע אז למה חשוב להגן על מידע ? כיוון שלכולם יש סודות, חברות, ממשלות, ואנשים פרטיים. כדי לעזור לנו, חכמינו נתנו להם סימנים: CIA Confidentiality נתחיל ב Confidentiality סודיות, אז מה זה סודיות ? אנחנו רוצים שהתכנים שלנו יהיו סודיים ולא יהיו נגישים לאנשים אחרים. אחד הנושאים העיקריים בסודיות הוא: הצפנה . הצפנה זה לקחת מידע ולהפוך אותו לכזה שגם אם מישהו מגיע אליו הוא לא יוכל להבין מה יש שם, למשל ההצפנה המפורסמת של יוליוס קיסר, ה ״ cypher text ״,שזה צופן היסט.                                            דוגמה: ״WR EH RU QRW WR EH״ שזה בעצם צופן היסט (של 3 אותיות) למשפט ״to be or not to be״, בעצם לוקחים את האותיות ה - a-z ומסיטים כל אות 3 צעדים קדימה למשל האות A הופגת להיות C והאות B הופכת להיות האות D וכך הלאה.. בימינו כמובן שההצפנה הקיסרית היא לא חזקה מספיק, ואנחנו משתמשים בטכנולוגיות מתוחכמות יותר.. כיצד ? באמצעות 2 סוגי הצפנה, הצפנה סימטרית והצפנה ...

Selenium - locators

Image
Selenium Locators are used for identifying the web elements on the web page. T o access the HTML elements from a web page locators are used. In Selenium, we can use locators to perform actions on text boxes, checkboxes, links, radio buttons, list boxes, and other web elements. Locators help us in identifying the objects. This tutorial explains different types of locators, how, when, and ideal Strategies to use these locators. Example of web browser methods: Find Element by: There are two private methods that might be useful for locating page elements: find_element find_elements Example usage: from selenium.webdriver.common.by import By driver . find_element ( By . XPATH , '//button[text()="Some text"]' ) driver . find_elements ( By . XPATH , '//button' ) These are the attributes available for  By  class: ID = "id" XPATH = "xpath" LINK_TEXT = "link text" PARTIAL_LINK_TEXT = "partial link text" NAME ...