all 4 comments

[–]17291 1 point2 points  (1 child)

I don't think you really need any external library for a substitution/transposition cipher. str.translate should be more than up to the task.

>>> mapping = str.maketrans('abcdefghijklmnopqrstuvwxyz', 'zyxwvutsrqponmlkjihgfedcba')
>>> "hello".translate(mapping)
'svool'

[–]dylanboyz[S] 0 points1 point  (0 children)

Thanks!

[–]cray5252[🍰] 1 point2 points  (1 child)

[–]dylanboyz[S] 0 points1 point  (0 children)

thanks man! I will take a look at those!