예제 #1
0
 private function getCiphertext(SR_Player $player)
 {
     $ct = base64_decode('C9RJy1K5IXpZkCXs/IpuY5+Yb3QlYjGwdmeLH/uddAXyA/hJSYt3HiubjWMe7NxikFPX9Hs9CaqE4X4C1j8HqSEs6IJz23nV0eRbfjgHbCoFKYr/J04DvZ9VoTmkYYCI');
     $ct = GWF_AES::decrypt4($ct, LAMB_PASSWORD2, LAMB_PASSWORD2);
     $ct .= $this->getSolution($player);
     $ct = preg_replace('/[^A-Z ]/i', '', $ct);
     $pw = GWF_AES::decrypt4(base64_decode('PXa5vs9yDDi5reJlkUVLGFxldG+VjXJ6s18KFIWTlqE='), LAMB_PASSWORD2, LAMB_PASSWORD2);
     return GWF_PolyROT::encrypt($ct, $pw);
 }
예제 #2
0
 public function getAlcemCiphertext(SR_NPC $npc, SR_Player $player)
 {
     $plaintext = $this->lang('plaintext');
     $ciphertext = GWF_PolyROT::encrypt($plaintext, "D");
     return $ciphertext;
 }