# need suggestion for dividing a file into blocks of 128 bits.

sura watthana

Ranch Hand

Posts: 77

posted 10 years ago

Hi

there is a school project for RSA Cryptography

here is the requirement.

1. The encryption algorithm will encrypt content of a file and write out another

file

2. The decryption algorithm will decrypt the file encrypted using the

corresponding keys and write out a file with the same content as the original

data file

3. The two prime numbers: p and q must be 64 bits long

( I have figured this out)

4. A file must be divided into blocks of 128 bits. Each block must be encrypted in its entirety at a time

Thanks for any helpful suggestion

Sura Watthanalamlert

there is a school project for RSA Cryptography

here is the requirement.

1. The encryption algorithm will encrypt content of a file and write out another

file

2. The decryption algorithm will decrypt the file encrypted using the

corresponding keys and write out a file with the same content as the original

data file

3. The two prime numbers: p and q must be 64 bits long

( I have figured this out)

4. A file must be divided into blocks of 128 bits. Each block must be encrypted in its entirety at a time

**my problem is how do i divide a file into blocks of 128 bits according to the requirement?**Thanks for any helpful suggestion

Sura Watthanalamlert