My solutions for google foobar
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
398B

  1. import base64
  2. encrypted="HEYGAwIKCxQSUlZbSUkAExAXFU5CR0YWGQ0FCwYGABNGSVRHRhAFFQwLCgQRUU1JSQIHExkTHR1AQU9WRgAABBMQEggLAgJGWVZGCA0PCBAABAQLCRVSVltJSRIPGRkCAgsDRllWRhsPBQMcAhJOTl1BUgUADwtATVVRBwYBQEFPVkYeBwlAUgs="
  3. my_eyes=str.encode("gauvain")
  4. decoded=base64.b64decode(encrypted)
  5. decrypted=""
  6. for i in range(0,len(decoded)):
  7. decrypted+=chr((my_eyes[i%len(my_eyes)] ^ decoded[i]))
  8. print(decrypted)