summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2015-12-10 19:03:06 +0000
committerMatthew Hodgson <matthew@matrix.org>2015-12-10 19:03:06 +0000
commit5577a6109052e6c953a1532ecb3b473db709905e (patch)
tree6e426999e63e2eb715494d09874bdd7896ac3007 /scripts
parentMerge pull request #432 from matrix-org/pushrules_refactor (diff)
downloadsynapse-5577a6109052e6c953a1532ecb3b473db709905e.tar.xz
throwaway 1-liner for generating password hashes
Diffstat (limited to 'scripts')
-rw-r--r--scripts/gen_password1
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"'