Last active
September 18, 2017 02:25
-
-
Save tcely/7084d4b79edf10861d01e7c64fbae822 to your computer and use it in GitHub Desktop.
QNAP LUKS password hashing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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