Skip to content

Commit f2c838a

Browse files
committed
some more docs
1 parent 6eeed02 commit f2c838a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

readme.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,19 @@ That will generate a file outside the python and c# areas called *encrypted.txt*
3434
2. Choose option 2
3535

3636
That should show you the original string from the encrypt.py script ("hello there!" is the default)
37+
38+
## Generating New Keys
39+
The project comes with sample keys but if you want to create new ones, you can do so.
40+
41+
### Create initial keys
42+
The keys are initially created in C#:
43+
44+
1. From visual studio, run the project
45+
2. Choose option 1
46+
47+
### Put keys into the right places
48+
That will create a *PrivateKey.txt* and *PublicKey.txt* at the root of this repository (outside both the Python and C# areas).
49+
50+
The *PrivateKey.txt* can be copied directly into the `./csharp/EncryptionDemos` directory.
51+
52+
For python, the `PublicKey.txt` string needs to be converted into PEM format. You can use [this utility from SuperDry Developer](https://superdry.apphb.com/tools/online-rsa-key-converter) to do that conversion. Once you have it, paste it into `./python/publickey.pem`.

0 commit comments

Comments
 (0)