Encrypting with one-time pad
February 12th, 2010 updated (February 12th, 2010 5:33am)Recently a client requested that we do some encryption on their behalf with an algorithm that we'd never heard of: one-time pad. Normally we'd shy away from writing an encryption algorithm – this type of thing is better left to researchers who aren't on project timelines and can vet their solutions with super computers and research assistants. However in this case, we couldn't find any PHP code out their, the algorithm seemed simple enough and the promises of theoretically unbreakable encryption were too much.