paulbrodsky / benjamin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

String to Dictionary function

paulbrodsky opened this issue · comments

In order to encrypt a message, we need to read the contents of a map file, store them as a string, and convert that string to a dictionary that can be used by the encryption function.

Acceptance criteria:

  • Can convert a string (example 1) to a dictionary of key value pairs.
  • If the input is not formatted properly, no error will be thrown.

example 1:
A=Z
B=Y
C=X
...