Project done during Full Stack Software Engineering studies at Alx Africa. It aims to learn about how to manipulate bits and use bitwise operators in C language.
- C files are compiled using
gcc
- Tested on Ubuntu 20.04 LTS
All of the following files are scripts and programs written in C:
Filename | Description |
---|---|
0-binary_to_uint.c |
Converts a binary number to an unsigned int |
1-print_binary.c |
Prints the binary representation of a number |
2-get_bit.c |
Returns the value of a bit at a given index |
3-set_bit.c |
Sets the value of a bit to 1 at a given index |
4-clear_bit.c |
Sets the value of a bit to 0 at a given index |
5-flip_bits.c |
Returns the number of bits needed to flip to get from one number to another |
100-get_endianess.c |
Checks the endianness |
101-password |
Script that contains the password of crackme3 file |
- Write a function that converts a binary number to an unsigned int.
- Write a function that prints the binary representation of a number.
- Write a function that returns the value of a bit at a given index.
- Write a function that sets the value of a bit to 1 at a given index.
- Write a function that sets the value of a bit to 0 at a given index.
- Write a function that returns the number of bits you would need to flip to get from one number to another.
- Write a function that checks the endianness.
- Find the password for this program.
- Prince Solomon - princexz
All work contained in this project was completed as part of the curriculum for ALX Africa SE. ALX Africa is an online full-stack software engineering program that prepares students for careers in the tech industry using project-based peer learning. For more information, visit this link.