Changing 256 byte blocks to number for enryption

81 Views Asked by At

I'm working on RSA and ElGamal encryption systems but I'm stuck. I've written those algorithms, I know how it works. How can I change 256 byte chunks of file into number from range [1, 2^2048]? Because I can't pass 256 bytes as an argument with generated public key to encrypt.

0

There are 0 best solutions below