Salting:
- To enhance security, a unique and random value called a "salt" is added to each password before hashing.
- The salt ensures that even if two users have the same password, their hashed values will be different because of the unique salt.
Procedure:
- When a user creates an account or changes their password, the system generates a random salt for that user.
- The system combines the user's password with the salt and then applies the hash function to produce the hashed password.
- The hashed password and the salt are then stored in the database.
Now you may wonder, how is our password verified?
- When a user attempts to log in, the system retrieves the salt associated with the user from the database.
- The system combines the entered password with the retrieved salt and then applies the same hash function.
- It compares the computed hash with the stored hash, if they match, the entered password is correct.
- To enhance security, a unique and random value called a "salt" is added to each password before hashing.
- The salt ensures that even if two users have the same password, their hashed values will be different because of the unique salt.
Procedure:
- When a user creates an account or changes their password, the system generates a random salt for that user.
- The system combines the user's password with the salt and then applies the hash function to produce the hashed password.
- The hashed password and the salt are then stored in the database.
Now you may wonder, how is our password verified?
- When a user attempts to log in, the system retrieves the salt associated with the user from the database.
- The system combines the entered password with the retrieved salt and then applies the same hash function.
- It compares the computed hash with the stored hash, if they match, the entered password is correct.
This security practices may vary, not all websites implement the same measures.
some systems use "pepper", which is a secret value not stored in the database in the same database. The pepper is applied before hashing and provides an extra layer of security.
@javascript_resources
#cybersecurity
some systems use "pepper", which is a secret value not stored in the database in the same database. The pepper is applied before hashing and provides an extra layer of security.
@javascript_resources
#cybersecurity
π¨ Semantic Structure Example:
Master React.
Learn these hooks:
π useState()
β²οΈ useEffect()
π useContext()
π useReducer()
πββοΈ useCallback()
π§ useMemo()
π useRef()
π¨ useLayoutEffect()
Learn these hooks:
π useState()
β²οΈ useEffect()
π useContext()
π useReducer()
πββοΈ useCallback()
π§ useMemo()
π useRef()
π¨ useLayoutEffect()
Useful site to check
Open Peeps:
Hand-drawn illustration library for free use.
β openpeeps.com
#techtip
@javascript_resources
Open Peeps:
Hand-drawn illustration library for free use.
β openpeeps.com
#techtip
@javascript_resources
Understand possible values for CSS transform property with this cheat sheet π
π1
CSS Margin and Paddingπ₯π€
π Margin
Margin is used for controlling spacing around elements in a web page.
This creates space between an elementβs border and its neighbouring elements.
Margin is used for controlling spacing around elements in a web page.
This creates space between an elementβs border and its neighbouring elements.
π Margin Properties
βͺοΈmargin-top: sets the margin on the top side.
βͺοΈmargin-bottom: sets the margin on the bottom side.
βͺοΈmargin-left: sets the margin on the left side.
βͺοΈmargin-right: sets the margin on the right side.
βͺοΈmargin: sets the margin for all four sides.
βͺοΈmargin-top: sets the margin on the top side.
βͺοΈmargin-bottom: sets the margin on the bottom side.
βͺοΈmargin-left: sets the margin on the left side.
βͺοΈmargin-right: sets the margin on the right side.
βͺοΈmargin: sets the margin for all four sides.
π Margin Values
βͺοΈauto - the browser calculates the margin
βͺοΈlength - specifies a margin in px, pt, cm, etc.
βͺοΈ% - specifies a margin in % of the width of the container
βͺοΈinherit - makes the margin inherit from the parent element.
β‘οΈNegative values are allowed.
βͺοΈauto - the browser calculates the margin
βͺοΈlength - specifies a margin in px, pt, cm, etc.
βͺοΈ% - specifies a margin in % of the width of the container
βͺοΈinherit - makes the margin inherit from the parent element.
β‘οΈNegative values are allowed.
π Margin Shorthand Property
You can use the margin shorthand property to set all four margin values at once.
You can use the margin shorthand property to set all four margin values at once.
π Padding
Padding is used to create space between an elementβs content and its border.
It affects the space inside the element.
Padding is used to create space between an elementβs content and its border.
It affects the space inside the element.