Small program RSA segmentation encryption and decryption