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

Challenge: Creating Hash Function

Task

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.

Task

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 desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Section 2. Chapter 6
toggle bottom row

Challenge: Creating Hash Function

Task

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.

Task

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 desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Section 2. Chapter 6
toggle bottom row

Challenge: Creating Hash Function

Task

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.

Task

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 desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Task

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 desktop for real-world practiceContinue from where you are using one of the options below
Section 2. Chapter 6
Switch 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