Skip to content

lib, doc: added vernam cipher#2

Open
NazarPonochevnyi wants to merge 12 commits into
masterfrom
create-vernam_cipher
Open

lib, doc: added vernam cipher#2
NazarPonochevnyi wants to merge 12 commits into
masterfrom
create-vernam_cipher

Conversation

@NazarPonochevnyi

Copy link
Copy Markdown
Owner

Add Vernam's Cipher to the library and change the documentation.

@NazarPonochevnyi NazarPonochevnyi self-assigned this Sep 6, 2017

@NazarPonochevnyi NazarPonochevnyi left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Must updated

Comment thread vernam_cipher.py
while True:
try:
text = ast.literal_eval("b'{}'".format(input('\nInput text: ').strip().replace('\'', '`')))
key = ast.literal_eval("b'{}'".format(input('\nInput key: ').strip().replace('\'', '`')))

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ast.literal_eval() method doesn't support unicode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant