Skip to content
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

Caesar changes string to uppercase #12

Open
DavidEngNJ opened this issue Jun 27, 2019 · 0 comments
Open

Caesar changes string to uppercase #12

DavidEngNJ opened this issue Jun 27, 2019 · 0 comments

Comments

@DavidEngNJ
Copy link

Hi James
I am using the Caesar cipher to encrypt my text string, which consists of lower and upper case. But, the Caesar method changes it to all upper case. And, when I decrypt it is all upper case, which won't match my original mixed case string. Any suggestions appreciated.

code snippet:
USERNAME = os.environ['NETWORK_USERNAME']
PASSWORD = os.environ['NETWORK_PASSWORD']
from pycipher import Caesar
var1 = Caesar(key=21).encipher(USERNAME,keep_punct=True)
print(var1)
var2 = Caesar(key=21).encipher(PASSWORD,keep_punct=True)
print(var2)

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

No branches or pull requests

1 participant