Hello I am a novice developer. And just gave me a project to iOS, but I have to encrypt part ciert an information.
I have to use 1024-bit RSA. The only thing they give me is a public key:
BitStrength = 1024
RSAKeyValue
Modulus = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Exponent = Xxxx
RSAKeyValue
Example: a string unencrypted and encrypted
Unencrypted string:
Prueba de Encriptacion
Encrypted string above:
uaUbBBR6Ghx/6EaspBB1QD024uUZ7O+koeNd0PTAt/wnM5w8s8TqRSGnB9iK7oSyRce4BPuVzFzsB2P34/fq5MoyuKvPG6vDZp8Ck/GifZAOZN1dbCRgOdE8qboKcWYH3WcZieUfpBepBwR6usY2xWaH9/56PCeSaDgncSPGrWc=bcrcdoaSp0zSv6hKc0jqh2oyVtLOaMmSqLxNRVpD62ojwfkFFb8zTJVFBUpxNmDCU4b0xgP0iYu9rRVBlo0Yp2GhoCgz/cR9+PRwOXWJYoV4Qd1j7zHZDsMy7njE8hBoU6N6ZVYkEhIfQ8z1TqOQyWeNUcll3JqaHNEqsF4w0Io=
I have to get the encrypted string. no need to decrypt
This is the first time I work with RSA encryption and truth I have no idea how to do it and also do not understand that use of the Exponent sent to me, as I read this encryption works but not how to implement iOS.