generate a one-time pad

dd if=/dev/random of=~/.onetime/to_foo.pad bs=1000 count=1
Sample Output
00000000: a9c5 7d8a 3b7a 1490 da3b 7e0f 27ab 7c32  ..}.;z...;~.'.|2
00000010: 6985 be36 ada0 3422 0afd 8a3f 52d0 8222  i..6..4"...?R.."
00000020: a454 9ce9 a11f 1e10 03d0 bbd4 73ef 52c4  .T..........s.R.
00000030: d069 4fcb 2e2f 8ae0 f5f1 9b23 b94c 36e4  .iO../.....#.L6.
00000040: f390 21c8 5065 68e9 a3e8 13fc 033c 6f04  ..!.Peh......<o.
00000050: 209b 1445 e565 09b8 4e4e 9609 1ce2 9f48   ..E.e..NN.....H
00000060: 3bed 9fc4 2e14 b8b7 c9be ae7b 8985 a90b  ;..........{....
00000070: 149e ac                                  ...

By: m4r14n0ju
2016-10-07 11:31:37

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: