Skip to content

Instantly share code, notes, and snippets.

View moo-im-a-cow's full-sized avatar

Birdie K moo-im-a-cow

View GitHub Profile

Keybase proof

I hereby claim:

  • I am moo-im-a-cow on github.
  • I am moo_im_a_cow (https://keybase.io/moo_im_a_cow) on keybase.
  • I have a public key whose fingerprint is 8ECE DAF0 7DD2 46C4 0111 A2A5 8A9F DD6F B0DA F77D

To claim this, I am signing this object:

@moo-im-a-cow
moo-im-a-cow / anotherroute.php
Last active September 3, 2018 18:13
klein.php subdomain matching
<?php
$this->respond(
'/?', function ($req, $res, $service, $app) {
return "home page for SUBDOMAIN";
}
);
<?php
//TESTING THE ENCRYPTION FROM https://gist.github.com/chrisns/3992815
/*
Just a quick warning:
THIS TEST IS INSECURE!
Even though the text is encrypted between the server and the client,
The password that an attacker would need access to in order for him to decrypt it
is hardcoded along side the encrypted text,
any attacker can visit this page, see that the password "i_love_passwords" is used to decrypt,
and now they can decrypt anything sent to or from the server.