Convert one-time pad to digit format before encryption