Recently Updated
Sloppy Encryption
Challenge
The easterbunny is not advanced at doing math and also really sloppy.
He lost the encryption script while hiding your challenge. Can you decrypt it?
1
K7sAYzGlYx0kZyXIIPrXxK22DkU4Q+rTGfUk9i9vA60C/ZcQOSWNfJLTu4RpIBy/27yK5CBW+UrBhm0=
Solution
The code is:
1
2
3
4
5
6
7
8
9
require"base64"
puts"write some text and hit enter:"
input=gets.chomp
h=input.unpack('C'*input.length).collect{|x|x.to_s(16)}.join
ox='%#X'%h.to_i(16)
x=ox.to_i(16)*['5'].cycle(101).to_a.join.to_i
c=x.to_s(16).scan(/../).map(&:hex).map(&:chr).join
b=Base64.encode64(c)
puts"encrypted text:""#{b}"
So we need to reverse this
Egg
Flag