The technique is called ‘Pinprick Encryption’ and has been around for a VERY long time.  The idea came from Aeneas Tacticus who wrote about it in his work ‘How to Survive Under Siege’

 

The relevant section is HERE

Another mention of it is HERE