Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Creating Hash Function | Web Cyber Security
Cyber Security Fundamentals
course content

Course Content

Cyber Security Fundamentals

Cyber Security Fundamentals

1. Introduction to Cyber Security
2. Web Cyber Security
3. Information Encryption

bookChallenge: Creating Hash Function

Task
test

Swipe to show code editor

Now you will create a simple hash function:

  1. Specify input_string and hash_size as arguments of the simple_mod_hash() function.
  2. Use the modulo (%) operation to create a hash value inside the function.

Note

hash_size argument determines the number of possible hash values the function can generate, which is used to keep the hash value within a specific range.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 2. Chapter 6
toggle bottom row

bookChallenge: Creating Hash Function

Task
test

Swipe to show code editor

Now you will create a simple hash function:

  1. Specify input_string and hash_size as arguments of the simple_mod_hash() function.
  2. Use the modulo (%) operation to create a hash value inside the function.

Note

hash_size argument determines the number of possible hash values the function can generate, which is used to keep the hash value within a specific range.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 2. Chapter 6
toggle bottom row

bookChallenge: Creating Hash Function

Task
test

Swipe to show code editor

Now you will create a simple hash function:

  1. Specify input_string and hash_size as arguments of the simple_mod_hash() function.
  2. Use the modulo (%) operation to create a hash value inside the function.

Note

hash_size argument determines the number of possible hash values the function can generate, which is used to keep the hash value within a specific range.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Task
test

Swipe to show code editor

Now you will create a simple hash function:

  1. Specify input_string and hash_size as arguments of the simple_mod_hash() function.
  2. Use the modulo (%) operation to create a hash value inside the function.

Note

hash_size argument determines the number of possible hash values the function can generate, which is used to keep the hash value within a specific range.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 2. Chapter 6
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt