You could use the AES Crypto Service Provider and then store the output as a binary string representation of the byte array output.
I.e 12345 might encrypt into “1001001010110001”
4
solved Encrypt String (of only digits) into another String (of only digits)