Any pattern to recognize base-64 encoded strings?
The first time I saw it, I felt it is about hashing or encoding but not really as accurate as your answer
Tim Moores
Rancher
Joined: Sep 21, 2011
Posts: 2407
posted
0
The trailing equals sign is a give-away. And, of course, the limited range of characters (just letters and digits, for the most part).
Dave Trower
Ranch Hand
Joined: Feb 12, 2003
Posts: 78
posted
1
Here are the steps to decode:
1) Go to a base 64 base decode website. There are several, but I went to http://www.opinionatedgeek.com/dotnet/tools/base64decode/ I copied what you put in this post and it decoded to this:
57:68:65:6e:20:79:6f:75:20:65:6d:61:69:6c:20:75:73:2c:20:63:68:61:6e:67:65:20:74:68:65:20:73:75:62:6a:65:63:74:20:74:6f:20:22:54:68:61:74:27:73:20:61:6c:6c:20:79:6f:75:20:67:6f:74:3f:22:20:61:6e:64:20:79:6f:75:72:20:72:65:73:75:6d:65:20:77:69:6c:6c:20:6d:61:6b:65:20:69:74:20:74:6f:20:74:68:65:20:74:6f:70:20:6f:66:20:74:68:65:20:72:65:76:69:65:77:20:73:74:61:63:6b
2) What it decoded to looks like a bunch of 2 digit hexadecimal numbers separated by a colon. The following program converts this to an ascii string.
Here is the answer:
When you email us, change the subject to "That's all you got?" and your resume will make it to the top of the review stack
Ryan McGuire
Ranch Hand
Joined: Feb 18, 2005
Posts: 944
posted
0
I'm disappointed... the hex-to-character decoding didn't use EDCDIC?
BTW, Integer.parseInt(hexCode, 16);
Ryan McGuire
Ranch Hand
Joined: Feb 18, 2005
Posts: 944
posted
0
Ryan McGuire wrote:I'm disappointed... the hex-to-character decoding didn't use EDCDIC?
Before anyone else points it out...
s/EDCDIC/EBCDIC/
Nothing worse than a typo when you're trying to show off.
Dave Trower wrote:Here are the steps to decode:
1) Go to a base 64 base decode website. There are several, but I went to http://www.opinionatedgeek.com/dotnet/tools/base64decode/ I copied what you put in this post and it decoded to this:
57:68:65:6e:20:79:6f:75:20:65:6d:61:69:6c:20:75:73:2c:20:63:68:61:6e:67:65:20:74:68:65:20:73:75:62:6a:65:63:74:20:74:6f:20:22:54:68:61:74:27:73:20:61:6c:6c:20:79:6f:75:20:67:6f:74:3f:22:20:61:6e:64:20:79:6f:75:72:20:72:65:73:75:6d:65:20:77:69:6c:6c:20:6d:61:6b:65:20:69:74:20:74:6f:20:74:68:65:20:74:6f:70:20:6f:66:20:74:68:65:20:72:65:76:69:65:77:20:73:74:61:63:6b
2) What it decoded to looks like a bunch of 2 digit hexadecimal numbers separated by a colon. The following program converts this to an ascii string.
Here is the answer:
When you email us, change the subject to "That's all you got?" and your resume will make it to the top of the review stack