M
M
markula2015-05-26 19:22:33
Programming
markula, 2015-05-26 19:22:33

How to split a string into blocks of k bits long so that after a cipher/decryption cycle you get the original string (RSA)?

There is an RSA encryption algorithm - https://drive.google.com/file/d/0BxCa2KoC3FpUUzVvW...
I implemented key generation.
Need help implementing string encryption/decryption.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oxoron, 2015-05-26
@Oxoron

I don't really understand why you want beats. Make the key length a multiple of 256, this is standard practice.
There is BitArray about bits, see here (in general, a good site, I recommend it).
Actually, BitArray allows you to create an array of any length. If you don't have enough characters, finish with zeros.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question