I'm implementing RSA public-private key encryption and decryption and the input of these functions is encoded as hexadecimal. The library I use (react-native-rsa) however only accepts plain strings for encryption so I cannot convert the hexadecimal to a byte array first.
Encrypting the hexadecimal string works fine, but I'm wondering if it's somehow less secure than encrypting the source byte array? In other words, is it more secure to encrypt directly
[10, 8] than encrypting its hexa representation which would be
['0', 'A', '0', '8']?
Or in general, does the encoding of the input string can have any impact on how secure the ciphertext is?