diff options
author | Matthew Hodgson <matthew@matrix.org> | 2015-12-10 19:03:06 +0000 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2015-12-10 19:03:06 +0000 |
commit | 5577a6109052e6c953a1532ecb3b473db709905e (patch) | |
tree | 6e426999e63e2eb715494d09874bdd7896ac3007 | |
parent | Merge pull request #432 from matrix-org/pushrules_refactor (diff) | |
download | synapse-5577a6109052e6c953a1532ecb3b473db709905e.tar.xz |
throwaway 1-liner for generating password hashes
-rw-r--r-- | scripts/gen_password | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/gen_password b/scripts/gen_password new file mode 100644 index 0000000000..7afd3a5dfd --- /dev/null +++ b/scripts/gen_password @@ -0,0 +1 @@ +perl -MCrypt::Random -MCrypt::Eksblowfish::Bcrypt -e 'print Crypt::Eksblowfish::Bcrypt::bcrypt("secret", "\$2\$12\$" . Crypt::Eksblowfish::Bcrypt::en_base64(Crypt::Random::makerandom_octet(Length=>16)))."\n"' |