7 kyu
Digital cypher
566 of 8,189dcieslak
Loading description...
Fundamentals
Ciphers
Cryptography
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
this was crazy difficult and all the answers are outrageously different. not sure I learned anything from this besides cracking codes is really hard.
Go Translation
approved
cool kata seems like easy-mid 6kyu
Finally I got it, c++.
https://www.codewars.com/kumite/65149d3660dc50028c207483?sel=65149d3660dc50028c207483 << Java translation ฅ(≈>ܫ<≈)
Approved! thanks!
python new test frame work
Approved
C translation does not show expected and actual values upon errors.
do you have to assign an unique number for every letter (a = 1, b = 2, c = 3, etc.)? Or there is some function that does it for you? I'm doing it on C++
This is an awesome kata but I would argue it's closer to a 6 or even 5kyu. Do others think it's harder than 7?
The level is not set by me. It's set more or less by beta testers.
Gotcha, thanks for the reply!
Awesome Kata! Cheers!
Julia translation
thanks!
C# generate warnings ->
tests/Fixture.cs(32,51): warning SYSLIB0023: 'RNGCryptoServiceProvider' is obsolete: 'RNGCryptoServiceProvider is obsolete. To generate a random number, use one of the RandomNumberGenerator static methods instead.'
Fork here: https://www.codewars.com/kumite/62895f83ab7eded72a6020f6?sel=62895f83ab7eded72a6020f6
Think codewars is bugging out, because it doesn't say it's a fork, but a full translation(at least on my end)
Thanks! Approved.
JS and TS need an update to the latest versions (see here and here)
(not about TS: the type should be
string
and notString
)Elixir translation added.
Please review and accept/comment :D
thanks! approved;P
The random tests are generating the input message as a charlist, not a string (binary).
C version generates warnings.
Fixed
C++ version generates warnings.
Fixed
a veri gud cata
vel dan
That was fun/mind-working, thanks @dcieslak.
Thanks! Check the rest katas from the series.
Please, NASM Translation
approved by someone
This comment has been hidden.
123 warriors finished it in Rust. Your error is not even related to my kata at all. I ma closing it.
Please, C Translation
Strange result for me in TypeScript. My solution passed the final tests and I submitted to get a passing result on the kata, but could not get the solution to work on the sample test. For the first sample test, I got this note:
Fail: expected [ 20, 12, 18, 30, 21 ] to equal [ 20, 12, 18, 30, 21 ]
For the life of me, cannot figure out what's going on with the chai test, and why it wouldn't recognize the two arrays as equal to give me passing credit on the sample test. Odd.
Thanks for your message. There was a bug in the sample tests and it's fixed. A reset of solution is required to load a new test samples.
I submitted a Rust translation
Thanks! It's already approved :)
Na Harwardzie tego typu zadanie jest dopiero po 6 godzinach wykładu, a tutaj tylko kata nr 7. No tyle, że tam robi się to w czystym C co jest ciut bardziej pracochłonne.
Jak po 6 godzinach to moze 8kyu powinno byc :)
To jak ktoś się uczy na własną rękę to zadanie powinno byc na 1 kyu :) btw to moge powiedziec ze jestem na poziomie 6h wykładow na Harwardzie hehehe...
I'm trying to get my code to pass the random test. my code passes the first two test but not the final random test which i cant figure out why. I know the n is a four digit number and my program processes that number correctly. also str is processed correctly as well. but when I try to test the random values the output shows that there are two number in the sequence off by a few. How should I try to figure out how to pass the random test if i dont know what its testing for?
You can use
std::cout
in your code to display whatever you want. Anyway I added also to my Kata logging what message and code are tested.BTW. The
n
is not a four digit number. It's a random number between 0 andINT_MAX
.Hi. I would like to ask for help or tips. I'm no longer sure why the test fails my code. I try it with different words and they come out accurate where we add 1939 everytime to the encrypted word. Can I post my code here? Thanks in advance.
You can post your solution here. Just mark your comment with a Sopiler flag.
Crystal translation for you, cheers!
Thanks!
Ruby and Python translations, please cheack and accept :-)
Thanks! BTW. Some guy doesn't like one of your Python translations Link. Could you check it?