开发者

allowing space in encoding function (Sage ShiftCryptosystem)

开发者 https://www.devze.com 2023-03-12 07:38 出处:网络
I am using sage to implement an encryption function that takes in plain text and converts it a cipher text ignoring space and non alphabetic characters(including them i开发者_StackOverflow中文版n enco

I am using sage to implement an encryption function that takes in plain text and converts it a cipher text ignoring space and non alphabetic characters(including them i开发者_StackOverflow中文版n encoded text). the encoding function however, removes all spaces and ignores non alphabetic characters(not including them in encoded text). I could not find any documentation on the function. Any help?


Is this what you are looking for? The examples make it pretty clear that this is what is intended.

Sage documentation on the ShiftCryptoSystem

Also, note that

sage: ShiftCryptosystem?

will take you the same place in the command line or notebook interface. Double question marks start getting you source code, hopefully that will lead you somewhere. Keep in mind that these cryptosystems are intended for pedagogical use.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号