Skip to content

Instantly share code, notes, and snippets.

@tcely
Last active September 18, 2017 02:25
Show Gist options
  • Save tcely/7084d4b79edf10861d01e7c64fbae822 to your computer and use it in GitHub Desktop.
Save tcely/7084d4b79edf10861d01e7c64fbae822 to your computer and use it in GitHub Desktop.
QNAP LUKS password hashing
#!/bin/sh
docker run --rm -it perl:5-threaded \
perl -e 'print(q{Enter pass phrase: }); system("stty -echo"); chomp($pt = <>); system("stty echo"); print(qq{\n}, crypt($pt, q{$1$YCCaQNAP$}), qq{\n});'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment