-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new option to use \Defuse\Crypto\Key as encryption key #812 #814 #820
Conversation
installation.md
Outdated
A `Key` can be generated with `Key::createNewRandomKey()` and saved as a `string` with `saveToAsciiSafeString()`. To generate a `Key` for the `AuthorizationServer` run the following command in the terminal: | ||
|
||
{% highlight shell %} | ||
php -r "require 'vendor/autoload.php'; echo \Defuse\Crypto\Key::createNewRandomKey()->saveToAsciiSafeString(), PHP_EOL;" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SunMar I think we could use the included script /vendor/bin/generate-defuse-key
here. I haven't tested it but I believe something like the following would suffice:
vendor/bin/generate-defuse-key > "mykey.txt"
It would be good to state Mac/Linux/Windows derivations of this if possible but I think this method would be easier than the one that is currently listed.
v5-security-improvements.md
Outdated
@@ -58,3 +58,7 @@ To generate an encryption key for the `AuthorizationServer` run the following co | |||
{% highlight shell %} | |||
php -r 'echo base64_encode(random_bytes(32)), PHP_EOL;' | |||
{% endhighlight %} | |||
|
|||
### 6.0.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this change can probably be left out. This file is for the version 5 security improvements. I also don't think the Key file is necessarily a security improvement, just a more efficient method. Thanks
Thanks for this @SunMar - I've merged in the main changes. Would it be possible you update this branch and modify the notes I've made? Once this has been done I will get this merged in too and get a version 7.1 released. Many thanks. |
@Sephster I've updated the branch. What I'm not sure however about is the text for generating a
However the funny thing is, because What I guess my suggestion would be is to completely remove the What do you think? |
I see what you mean @SunMar - I think that we should leave the I've updated the text to say that the password might be of varying strength which I think will cover us. I will merge this in and we will get it out in the next release which should hopefully be this weekend! Thanks for making the changes and adding this feature. |
Sorry, I will merge this in when the new release is put out :) |
Update documentation with changes in #814 (also see #812).
Is there a way I can see the end result of the changes? I was able to view the
.md
formatting but some things are custom so I couldn't verify how it's going to look on the web page.