import * as minecraftLib from "https://deno.land/x/minecraft_lib@0.1.0/crypto/mod.ts";
Cryptographic primitives used for protocol encryption, signing, and signature verification.
Functions
Decrypts data using the private key and the PKCS1 padding algorithm. | |
Encrypts data using the public key and the PKCS1 padding algorithm. | |
Exports a RSA private key to the PKCS8 binary format. | |
Exports a RSA public key to the SPKI binary format. | |
Generates a new RSA key pair. | |
Generates a hash used for authentication via the Mojang session services. | |
Imports a RSA private key from a web crypto key or the PKCS8 binary representation. | |
Imports a RSA public key from a web crypto key or the SPKI binary representation. | |
Creates a signature using the private key, SHA-256 hashing algorithm and the PKCS1 padding scheme. | |
Verifies a signature using the public key, SHA-256 hashing algorithm and the PKCS1 padding scheme. |