How do I generate a secret key (application key) with Play Framework 2.6?

Play Framework FAQ: How do I generate a secret key (application key) with Play Framework 2.6?

Answer: Use the playGenerateSecret command in the SBT shell. Here’s an example:

$ sbt

[Scrupal6] $ playGenerateSecret
[info] Generated new secret: TozWYjreCna1QlVBGqfK4D/C6wZyQOm9gm<9;D_KO@]n
[success] Total time: 0 s, completed Apr 4, 2018 2:21:57 PM

Note that the playGenerateSecret command generates a new secret key each time you run it.

Once you have that secret key you can use it with your Play Framework application in a variety of ways. For more information, see these playframework.com links:

If you needed to see how to generate a secret key with the Play Framework 2.6, I hope this is helpful.