Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
A lossy encryption algorithm ?!?
With key
"hi"
, given the ciphertext, you can't know if the first character of the plaintext is'H'
or'I'
.As an author, you have a lot of leeway in designing your kata, but this is ridiculous.
Given a key and a ciphertext, how will you know where the plaintext ends and the trailing garbage begins? Trailing garbage might look like perfectly valid plaintext ( for medium high indices, you'll get digits ).
It is even possible to run out of ASCII for longer key values ( note that standard ASCII only goes up to
127
).Please don't make any contributions to OpenSSL just yet. :S
The handling of messages shorter than keys is explained terribly. Why does key length affect encryption in such a dumb way in the first place?
There's no such thing as "decimal of a characater".
How?
"decimal of a character" -> "ascii code"
Trivial map/filter/reduce is not a novel idea.
if i != 0:i-=3
Why? This does nothing at all in your solutionSo 0 and 1 aren't perfect squares?
And you should explain what you consider a fake god.