generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
174 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Privacy Policy | ||
|
||
## Introduction | ||
|
||
Reden and RVCHub is part of The Land of StarLight Team (aka. "us", "we", "our", TLSL) | ||
|
||
This privacy policy explains how we collect data, process it, and your rights relative to your data. | ||
|
||
This policy describes the types of information we may collect from you or that you may provide when you use Reden mod or RVCHub ("Service" or "Website"), and our practices for collecting, using, maintaining, protecting, and disclosing that information. | ||
|
||
This policy applies to information we collect: | ||
- On our website | ||
- In minecraft, if you are using our service by a minecraft mod. | ||
- When you interact with our advertising and applications on third-party websites and services, if those applications or advertising include links to this policy. | ||
|
||
Please read this policy carefully to understand our policies and practices regarding your information and how we will treat it. If you do not agree with our policies and practices, your choice is not to use our website or service. By accessing or using this website or service, you agree to this privacy policy. This policy may change from time to time (see Changes to the Privacy Policy). Your continued use of this website or service after we make changes is deemed to be acceptance of those changes, so please check the policy periodically for updates. | ||
|
||
## What data do we collect? | ||
|
||
### RVCHub User Data | ||
|
||
When you create an account on RVCHub, we collect: | ||
- Your name | ||
- Your email | ||
- Your profile picture | ||
- Your OAuth data, if you access your account through a 3rd-party account. | ||
- Your address, if applicable | ||
- Your timezone, if applicable | ||
|
||
### MC Data | ||
|
||
When you use our minecraft mod, we collect: | ||
- Your MC Name and UUID | ||
- Your client version | ||
- Your operating system data | ||
- Your playtime data, including: | ||
- The server/world you are playing, and how long you played | ||
- How long you use our service | ||
- Server setting, including: | ||
- Online mode | ||
- Players on ping screen | ||
- Server ip | ||
|
||
When you use our minecraft mod on a server, we also collect: | ||
|
||
### Downloading | ||
|
||
When you download or view resources from our service, we collect: | ||
- Your IP address | ||
- Your user ID (if applicable) | ||
- The resource or the file downloaded | ||
- Your country | ||
- Some additional metadata about your connection (HTTP headers) | ||
|
||
### Uploading | ||
|
||
When you share or upload resources to our service, we collect: | ||
|
||
## Data retention | ||
|
||
Data is retained indefinitely. We do not delete any data unless you request it. | ||
|
||
If you want to delete your data, please go to <https://example.com>. We will keep your data for 14 days after your request. You can cancel this request anytime. After 14 days, your data will be deleted automatically forever. | ||
|
||
## Access, rectification, erasure, restriction, portability, and objection | ||
|
||
Please contact us at <https://example.com> | ||
|
||
## Children | ||
|
||
## Changes to the Privacy Policy | ||
|
||
We keep this privacy policy under regular review and place any updates on this web page. If we do this, we will post the changes on this page, after which such changes will become effective immediately. We will make an effort to keep users updated on any such changes, but because most changes do not affect how we process existing data, a notice will not be sent for all changes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
package com.github.zly2006.reden.report | ||
|
||
import com.github.zly2006.reden.utils.ResourceLoader | ||
import org.bouncycastle.bcpg.BCPGInputStream | ||
import org.bouncycastle.openpgp.PGPPublicKeyRingCollection | ||
import org.bouncycastle.openpgp.PGPSignature | ||
import org.bouncycastle.openpgp.PGPUtil | ||
import org.bouncycastle.openpgp.operator.bc.BcKeyFingerprintCalculator | ||
import org.bouncycastle.openpgp.operator.jcajce.JcaPGPContentVerifierBuilderProvider | ||
import java.io.ByteArrayInputStream | ||
|
||
|
||
fun checkSignature(): Boolean { | ||
if (ResourceLoader.loadString("cert") == "SOS Dan Saiko") { | ||
println("SOS団最高") | ||
return true | ||
} | ||
val key = """-----BEGIN PGP PUBLIC KEY BLOCK----- | ||
mQINBGTWTCIB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PUBLIC KEY BLOCK----- | ||
""".trimIndent() | ||
val keyRing = PGPPublicKeyRingCollection(PGPUtil.getDecoderStream(ByteArrayInputStream(key.toByteArray())), BcKeyFingerprintCalculator()) | ||
val signature = PGPSignature(BCPGInputStream.wrap(PGPUtil.getDecoderStream(ByteArrayInputStream(ResourceLoader.loadBytes("cert"))))) | ||
|
||
keyRing.keyRings.forEach { | ||
it.publicKeys.forEach { | ||
if (signature.keyID == it.keyID) { | ||
signature.init(JcaPGPContentVerifierBuilderProvider().setProvider("BC"), it) | ||
if (signature.verifyCertification(it)) { | ||
val buffer = ByteArray(1024) | ||
var bytesRead: Int | ||
while (ByteArrayInputStream(signature.signatureTrailer).read(buffer).also { bytesRead = it } != -1) { | ||
signature.update(buffer, 0, bytesRead) | ||
} | ||
if (signature.verify()) { | ||
println("OK") | ||
return true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
return false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SOS Dan Saiko |