Skip to content

Commit

Permalink
login/request.go: Use the new Mojang public key. (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownOre committed Aug 22, 2023
1 parent b10faad commit d4949d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minecraft/protocol/login/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type request struct {

func init() {
//noinspection SpellCheckingInspection
const mojangPublicKey = `MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE8ELkixyLcwlZryUQcu1TvPOmI2B7vX83ndnWRUaXm74wFfa5f/lwQNTfrLVHa2PmenpGI6JhIMUJaWZrjmMj90NoKNFSNBuKdm8rYiXsfaz3K36x/1U26HpG0ZxK/V1V`
const mojangPublicKey = `MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAECRXueJeTDqNRRgJi/vlRufByu/2G0i2Ebt6YMar5QX/R0DIIyrJMcUpruK4QveTfJSTp3Shlq4Gk34cD/4GUWwkv0DVuzeuB+tXija7HBxii03NHDbPAD0AKnLr2wdAp`

data, _ := base64.StdEncoding.DecodeString(mojangPublicKey)
publicKey, _ := x509.ParsePKIXPublicKey(data)
Expand Down

0 comments on commit d4949d3

Please sign in to comment.