bash 字符串加密/解密
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24627287/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Encryption/Decryption on string
提问by msbarnard
I am very new to encryption and I would really appreciate your input on this puzzle as I am stuck.
我对加密很陌生,我真的很感激你在这个谜题上的投入,因为我被卡住了。
The puzzle:
谜底:
<?php> blinker
defined( '_JEXEC' ) or die( 'Restricted access' );
terminal:~ A fantastic internship opportunity...
终端:~一个绝佳的实习机会......
-bash: Solve this puzzle
If you're interested then [email protected] = [email protected]
which will lead you to 171225.13916.co.za
-bash:解决这个难题如果您感兴趣,那么[email protected] = [email protected]
这将引导您171225.13916.co.za
terminal:~ what is the answer$
终端:~答案是什么$
Please note I will not be entering with the answer I am just so interested as to how to solve this.
请注意,我不会输入答案,我只是对如何解决这个问题很感兴趣。
回答by condorwasabi
The answer is job.mip.co.za Take the alphabet and associate a number to each letter.
答案是 job.mip.co.za 取字母表并为每个字母关联一个数字。
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
Take the word work: w=23;o=15;r=18;k=11 If you do this with the word fun it's not going to work. That's because fun is "the opposite of work". So: f=6 but you have to start counting to 6 from the end of the alphabet. So you'll get f=21. u=21 but you have to start counting from the end of the alphabet and you'll get u=6. And n will be 13.
拿工作这个词来说:w=23;o=15;r=18;k=11 如果你用有趣这个词来做这件事,它就行不通了。那是因为乐趣是“工作的对立面”。所以:f=6 但你必须从字母表的末尾开始数到 6。所以你会得到 f=21。u=21 但你必须从字母表的末尾开始数,你会得到 u=6。而 n 将为 13。
Now you take the number 171225 and you do the same as fun. You'll get the word job. As for the number 13916 you do the same as work and you'll get the word mip. Now type job.mip.co.za as answer and you'll get redirected to http://job.mip.co.za/
现在你拿数字 171225 做同样的事情,就像乐趣一样。你会得到工作这个词。至于数字 13916,你做同样的工作,你会得到 mip 这个词。现在输入 job.mip.co.za 作为答案,您将被重定向到http://job.mip.co.za/
That's it
就是这样
回答by L. Ali
if [email protected] = [email protected]
Then it is safe to assume that we working with a number and alphabet
correlation where a number equals an alphabet
Mathematically speaking 1 = A, and 2 = B .... and the are only 26 alphabets meaning we can't go higher than the number 26.
The first set of numbers are 5, and "fun" has three Alphabets where the only viable combination is
[21][6][13] = [U][f][M]
[2][16][13] = [A][P][M]
but none of them equals FUN
The second set of number are 8, and "work" has four Alphabets where the only viable combination is
[23][15][18][11] = [W][O][R][K]
Which give us the hint that the first set of numbers do in fact equals the word 'Fun'
we just have to look at the numbers differently.
how can 'F' be equal to [21]
and 'U' be equal to [6]
and 'N' be equal to [13]
or
how can 'F' be equal to [2]
and 'U' be equal to [16]
and 'N' be equal to [13]
we discovered counting from the right to the left side leaves us at undesired position
now lets try counting from the left side to right and see if it leave us at the desired position
[21] from left side to right side leave me at position [F]
[6] from left side to right side leave me at position [U]
[13] from left side to right side leave me at position [N]
[2] from left side to right side leave me at position [Y]
[6] from left side to right side leave me at position [U]
[13] from left side to right side leave me at position [N]
thus the first combination equals my desired value.
now using that same method it's safe to repeat on the next set of numbers.
171225.13916.co.za
[17] from left side to right side leave me at position [J]
[12] from left side to right side leave me at position [O]
[25] from left side to right side leave me at position [B]
and second set of numbers read from right side to left side
[13][9][16] = [M][I][P]
[13][9][1][6] = [M][I][A][F]
So that leaves me with only two possibilities.
'job.mip.co.za' or 'job.miaf.co.za' only of them is takes me where I need to be... my new home. Hi :)
回答by Reggy nyathi
job.mip.co.za 171225.13916.co.za
job.mip.co.za 171225.13916.co.za
I take the word mip where by M=13 I=9 P=16
我取词 mip where by M=13 I=9 P=16
so for Job J= 10 and counting to 10 from the end of alphabet i get j=17, for o=15 i count to 15 from the end of last alphabet i get 12, for b=2 i count to 2 from the end of last alphabet i get 25.
所以对于工作 J= 10 并从字母表的末尾数到 10,我得到 j=17,对于 o=15,我从最后一个字母表的末尾数到 15,我得到 12,对于 b=2,我从末尾数到 2最后一个字母我得到 25。
回答by Ethel
So, this is what I did.
所以,这就是我所做的。
21613. 23151811.co.za
wich equals to fun@work
21613. 23151811.co.za
相当于 fun@work
21 16 13= F=21 U=6 N=14
counting from Z that's number
21 16 13= F=21 U=6 N=14
从 Z 开始计数
26 23 15 18 11= W=10 O=15 R=18 K=11
counting from A that's number 1 Then: fun@work
从数字 1 的 A 开始计数然后:fun@work
171225.13916.co.za
wich equals to job.mip
171225.13916.co.za
相当于job.mip
17 12 25= J= 17 O=12 B=25
counting from Z that's number
17 12 25= J= 17 O=12 B=25
从 Z 开始计数
26 13 9 16= M=13 I=9 P=16
counting from A that's number 1
从数字 1 的 A 开始计数
回答by Maanda Cedrick Thavhanyedza
job.mip.co.za
工作.mip.co.za
171225.13916.co.za
171225.13916.co.za
m=16;i=9;p=16
m=16;i=9;p=16
l=17;o=12;b=25 which is lob
l=17;o=12;b=25 即高球
Take the word mip: m=16;i=9;p=16, l=12 counting to 12 from the end of the alphabet i get l=15. o-15 and counting from the end of the alphabet i get o=12 and b=25
以单词 mip 为例:m=16;i=9;p=16, l=12 从字母表的末尾数到 12,我得到 l=15。o-15 并从字母表的末尾数我得到 o=12 和 b=25