import { type Sodium } from "https://deno.land/x/sodium@0.2.0/sumo.ts";
Methods
crypto_aead_chacha20poly1305_decrypt(): Uint8Array
secret_nonce: string | Uint8Array | null,
ciphertext: string | Uint8Array,
additional_data: string | Uint8Array | null,
public_nonce: Uint8Array,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_aead_chacha20poly1305_decrypt(): string
secret_nonce: string | Uint8Array | null,
ciphertext: string | Uint8Array,
additional_data: string | Uint8Array | null,
public_nonce: Uint8Array,
key: Uint8Array,
outputFormat: StringOutputFormat,
crypto_aead_chacha20poly1305_decrypt_detached(): Uint8Array
secret_nonce: string | Uint8Array | null,
ciphertext: string | Uint8Array,
mac: Uint8Array,
additional_data: string | Uint8Array | null,
public_nonce: Uint8Array,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_aead_chacha20poly1305_decrypt_detached(): string
secret_nonce: string | Uint8Array | null,
ciphertext: string | Uint8Array,
mac: Uint8Array,
additional_data: string | Uint8Array | null,
public_nonce: Uint8Array,
key: Uint8Array,
outputFormat: StringOutputFormat,
crypto_aead_chacha20poly1305_encrypt(): Uint8Array
message: string | Uint8Array,
additional_data: string | Uint8Array | null,
secret_nonce: string | Uint8Array | null,
public_nonce: Uint8Array,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_aead_chacha20poly1305_encrypt(): string
message: string | Uint8Array,
additional_data: string | Uint8Array | null,
secret_nonce: string | Uint8Array | null,
public_nonce: Uint8Array,
key: Uint8Array,
outputFormat: StringOutputFormat,
crypto_aead_chacha20poly1305_encrypt_detached(): CryptoBox
message: string | Uint8Array,
additional_data: string | Uint8Array | null,
secret_nonce: string | Uint8Array | null,
public_nonce: Uint8Array,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_aead_chacha20poly1305_encrypt_detached(): StringCryptoBox
message: string | Uint8Array,
additional_data: string | Uint8Array | null,
secret_nonce: string | Uint8Array | null,
public_nonce: Uint8Array,
key: Uint8Array,
outputFormat: StringOutputFormat,
crypto_aead_chacha20poly1305_ietf_decrypt(): Uint8Array
secret_nonce: string | Uint8Array | null,
ciphertext: string | Uint8Array,
additional_data: string | Uint8Array | null,
public_nonce: Uint8Array,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_aead_chacha20poly1305_ietf_decrypt(): string
secret_nonce: string | Uint8Array | null,
ciphertext: string | Uint8Array,
additional_data: string | Uint8Array | null,
public_nonce: Uint8Array,
key: Uint8Array,
outputFormat: StringOutputFormat,
crypto_aead_chacha20poly1305_ietf_decrypt_detached(): Uint8Array
secret_nonce: string | Uint8Array | null,
ciphertext: string | Uint8Array,
mac: Uint8Array,
additional_data: string | Uint8Array | null,
public_nonce: Uint8Array,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_aead_chacha20poly1305_ietf_decrypt_detached(): string
secret_nonce: string | Uint8Array | null,
ciphertext: string | Uint8Array,
mac: Uint8Array,
additional_data: string | Uint8Array | null,
public_nonce: Uint8Array,
key: Uint8Array,
outputFormat: StringOutputFormat,
crypto_aead_chacha20poly1305_ietf_encrypt(): Uint8Array
message: string | Uint8Array,
additional_data: string | Uint8Array | null,
secret_nonce: string | Uint8Array | null,
public_nonce: Uint8Array,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_aead_chacha20poly1305_ietf_encrypt(): string
message: string | Uint8Array,
additional_data: string | Uint8Array | null,
secret_nonce: string | Uint8Array | null,
public_nonce: Uint8Array,
key: Uint8Array,
outputFormat: StringOutputFormat,
crypto_aead_chacha20poly1305_ietf_encrypt_detached(): CryptoBox
message: string | Uint8Array,
additional_data: string | Uint8Array | null,
secret_nonce: string | Uint8Array | null,
public_nonce: Uint8Array,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_aead_chacha20poly1305_ietf_encrypt_detached(): StringCryptoBox
message: string | Uint8Array,
additional_data: string | Uint8Array | null,
secret_nonce: string | Uint8Array | null,
public_nonce: Uint8Array,
key: Uint8Array,
outputFormat: StringOutputFormat,
crypto_aead_chacha20poly1305_ietf_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array
crypto_aead_chacha20poly1305_ietf_keygen(outputFormat: StringOutputFormat): string
crypto_aead_chacha20poly1305_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array
crypto_aead_chacha20poly1305_keygen(outputFormat: StringOutputFormat): string
crypto_aead_xchacha20poly1305_ietf_decrypt(): Uint8Array
secret_nonce: string | Uint8Array | null,
ciphertext: string | Uint8Array,
additional_data: string | Uint8Array | null,
public_nonce: Uint8Array,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_aead_xchacha20poly1305_ietf_decrypt(): string
secret_nonce: string | Uint8Array | null,
ciphertext: string | Uint8Array,
additional_data: string | Uint8Array | null,
public_nonce: Uint8Array,
key: Uint8Array,
outputFormat: StringOutputFormat,
crypto_aead_xchacha20poly1305_ietf_decrypt_detached(): Uint8Array
secret_nonce: string | Uint8Array | null,
ciphertext: string | Uint8Array,
mac: Uint8Array,
additional_data: string | Uint8Array | null,
public_nonce: Uint8Array,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_aead_xchacha20poly1305_ietf_decrypt_detached(): string
secret_nonce: string | Uint8Array | null,
ciphertext: string | Uint8Array,
mac: Uint8Array,
additional_data: string | Uint8Array | null,
public_nonce: Uint8Array,
key: Uint8Array,
outputFormat: StringOutputFormat,
crypto_aead_xchacha20poly1305_ietf_encrypt(): Uint8Array
message: string | Uint8Array,
additional_data: string | Uint8Array | null,
secret_nonce: string | Uint8Array | null,
public_nonce: Uint8Array,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_aead_xchacha20poly1305_ietf_encrypt(): string
message: string | Uint8Array,
additional_data: string | Uint8Array | null,
secret_nonce: string | Uint8Array | null,
public_nonce: Uint8Array,
key: Uint8Array,
outputFormat: StringOutputFormat,
crypto_aead_xchacha20poly1305_ietf_encrypt_detached(): CryptoBox
message: string | Uint8Array,
additional_data: string | Uint8Array | null,
secret_nonce: string | Uint8Array | null,
public_nonce: Uint8Array,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_aead_xchacha20poly1305_ietf_encrypt_detached(): StringCryptoBox
message: string | Uint8Array,
additional_data: string | Uint8Array | null,
secret_nonce: string | Uint8Array | null,
public_nonce: Uint8Array,
key: Uint8Array,
outputFormat: StringOutputFormat,
crypto_aead_xchacha20poly1305_ietf_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array
crypto_aead_xchacha20poly1305_ietf_keygen(outputFormat: StringOutputFormat): string
crypto_auth_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array
crypto_auth_keygen(outputFormat: StringOutputFormat): string
crypto_box_detached(): CryptoBox
message: string | Uint8Array,
nonce: Uint8Array,
publicKey: Uint8Array,
privateKey: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_box_detached(): StringCryptoBox
message: string | Uint8Array,
nonce: Uint8Array,
publicKey: Uint8Array,
privateKey: Uint8Array,
outputFormat: StringOutputFormat,
crypto_box_easy(): Uint8Array
message: string | Uint8Array,
nonce: Uint8Array,
publicKey: Uint8Array,
privateKey: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_box_easy(): string
message: string | Uint8Array,
nonce: Uint8Array,
publicKey: Uint8Array,
privateKey: Uint8Array,
outputFormat: StringOutputFormat,
crypto_box_easy_afternm(): Uint8Array
message: string | Uint8Array,
nonce: Uint8Array,
sharedKey: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_box_easy_afternm(): string
message: string | Uint8Array,
nonce: Uint8Array,
sharedKey: Uint8Array,
outputFormat: StringOutputFormat,
crypto_box_keypair(outputFormat?: Uint8ArrayOutputFormat | null): KeyPair
crypto_box_keypair(outputFormat: StringOutputFormat): StringKeyPair
crypto_box_open_detached(): Uint8Array
ciphertext: string | Uint8Array,
mac: Uint8Array,
nonce: Uint8Array,
publicKey: Uint8Array,
privateKey: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_box_open_detached(): string
ciphertext: string | Uint8Array,
mac: Uint8Array,
nonce: Uint8Array,
publicKey: Uint8Array,
privateKey: Uint8Array,
outputFormat: StringOutputFormat,
crypto_box_open_easy(): Uint8Array
ciphertext: string | Uint8Array,
nonce: Uint8Array,
publicKey: Uint8Array,
privateKey: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_box_open_easy(): string
ciphertext: string | Uint8Array,
nonce: Uint8Array,
publicKey: Uint8Array,
privateKey: Uint8Array,
outputFormat: StringOutputFormat,
crypto_box_open_easy_afternm(): Uint8Array
ciphertext: string | Uint8Array,
nonce: Uint8Array,
sharedKey: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_box_open_easy_afternm(): string
ciphertext: string | Uint8Array,
nonce: Uint8Array,
sharedKey: Uint8Array,
outputFormat: StringOutputFormat,
crypto_box_seal_open(): Uint8Array
ciphertext: string | Uint8Array,
publicKey: Uint8Array,
privateKey: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_box_seal_open(): string
ciphertext: string | Uint8Array,
publicKey: Uint8Array,
privateKey: Uint8Array,
outputFormat: StringOutputFormat,
crypto_box_seed_keypair(seed: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): KeyPair
crypto_box_seed_keypair(seed: Uint8Array, outputFormat: StringOutputFormat): StringKeyPair
crypto_generichash(): Uint8Array
hash_length: number,
message: string | Uint8Array,
key?: string | Uint8Array | null,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_generichash(): string
hash_length: number,
message: string | Uint8Array,
key: string | Uint8Array | null,
outputFormat: StringOutputFormat,
crypto_generichash_init(key: string | Uint8Array | null, hash_length: number): StateAddress
crypto_generichash_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array
crypto_generichash_keygen(outputFormat: StringOutputFormat): string
crypto_generichash_update(state_address: StateAddress, message_chunk: string | Uint8Array): void
crypto_hash(message: string | Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array
crypto_hash(message: string | Uint8Array, outputFormat: StringOutputFormat): string
crypto_kdf_derive_from_key(): Uint8Array
subkey_len: number,
subkey_id: number,
ctx: string,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_kdf_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array
crypto_kdf_keygen(outputFormat: StringOutputFormat): string
crypto_kx_client_session_keys(): CryptoKX
clientPublicKey: Uint8Array,
clientSecretKey: Uint8Array,
serverPublicKey: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_kx_client_session_keys(): StringCryptoKX
clientPublicKey: Uint8Array,
clientSecretKey: Uint8Array,
serverPublicKey: Uint8Array,
outputFormat: StringOutputFormat,
crypto_kx_keypair(outputFormat?: Uint8ArrayOutputFormat | null): KeyPair
crypto_kx_keypair(outputFormat: StringOutputFormat): StringKeyPair
crypto_kx_seed_keypair(seed: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): KeyPair
crypto_kx_seed_keypair(seed: Uint8Array, outputFormat: StringOutputFormat): StringKeyPair
crypto_kx_server_session_keys(): CryptoKX
serverPublicKey: Uint8Array,
serverSecretKey: Uint8Array,
clientPublicKey: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_kx_server_session_keys(): StringCryptoKX
serverPublicKey: Uint8Array,
serverSecretKey: Uint8Array,
clientPublicKey: Uint8Array,
outputFormat: StringOutputFormat,
crypto_pwhash(): Uint8Array
keyLength: number,
password: string | Uint8Array,
salt: Uint8Array,
opsLimit: number,
memLimit: number,
algorithm: number,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_pwhash(): string
keyLength: number,
password: string | Uint8Array,
salt: Uint8Array,
opsLimit: number,
memLimit: number,
algorithm: number,
outputFormat: StringOutputFormat,
crypto_scalarmult_base(privateKey: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array
crypto_scalarmult_base(privateKey: Uint8Array, outputFormat: StringOutputFormat): string
crypto_secretbox_detached(): SecretBox
message: string | Uint8Array,
nonce: Uint8Array,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_secretbox_detached(): StringSecretBox
crypto_secretbox_easy(): Uint8Array
message: string | Uint8Array,
nonce: Uint8Array,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_secretbox_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array
crypto_secretbox_keygen(outputFormat: StringOutputFormat): string
crypto_secretbox_open_detached(): Uint8Array
ciphertext: string | Uint8Array,
mac: Uint8Array,
nonce: Uint8Array,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_secretbox_open_detached(): string
ciphertext: string | Uint8Array,
mac: Uint8Array,
nonce: Uint8Array,
key: Uint8Array,
outputFormat: StringOutputFormat,
crypto_secretbox_open_easy(): Uint8Array
ciphertext: string | Uint8Array,
nonce: Uint8Array,
key: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_secretstream_xchacha20poly1305_init_pull(header: Uint8Array, key: Uint8Array): StateAddress
crypto_secretstream_xchacha20poly1305_init_push(key: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): { state: StateAddress; header: Uint8Array; }
crypto_secretstream_xchacha20poly1305_init_push(key: Uint8Array, outputFormat: StringOutputFormat): { state: StateAddress; header: string; }
crypto_secretstream_xchacha20poly1305_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array
crypto_secretstream_xchacha20poly1305_keygen(outputFormat: StringOutputFormat): string
crypto_secretstream_xchacha20poly1305_pull(): MessageTag
state_address: StateAddress,
cipher: string | Uint8Array,
ad?: string | Uint8Array | null,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_secretstream_xchacha20poly1305_pull(): StringMessageTag
state_address: StateAddress,
cipher: string | Uint8Array,
ad: string | Uint8Array | null,
outputFormat: StringOutputFormat,
crypto_secretstream_xchacha20poly1305_push(): Uint8Array
state_address: StateAddress,
message_chunk: string | Uint8Array,
ad: string | Uint8Array | null,
tag: number,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_secretstream_xchacha20poly1305_push(): string
state_address: StateAddress,
message_chunk: string | Uint8Array,
ad: string | Uint8Array | null,
tag: number,
outputFormat: StringOutputFormat,
crypto_secretstream_xchacha20poly1305_rekey(state_address: StateAddress): true
crypto_shorthash_keygen(outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array
crypto_shorthash_keygen(outputFormat: StringOutputFormat): string
crypto_sign_ed25519_pk_to_curve25519(edPk: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array
crypto_sign_ed25519_pk_to_curve25519(edPk: Uint8Array, outputFormat: StringOutputFormat): string
crypto_sign_ed25519_sk_to_curve25519(edSk: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array
crypto_sign_ed25519_sk_to_curve25519(edSk: Uint8Array, outputFormat: StringOutputFormat): string
crypto_sign_init(): StateAddress
crypto_sign_keypair(outputFormat?: Uint8ArrayOutputFormat | null): KeyPair
crypto_sign_keypair(outputFormat: StringOutputFormat): StringKeyPair
crypto_sign_open(): Uint8Array
signedMessage: string | Uint8Array,
publicKey: Uint8Array,
outputFormat?: Uint8ArrayOutputFormat | null,
crypto_sign_seed_keypair(seed: Uint8Array, outputFormat?: Uint8ArrayOutputFormat | null): KeyPair
crypto_sign_seed_keypair(seed: Uint8Array, outputFormat: StringOutputFormat): StringKeyPair
crypto_sign_update(state_address: StateAddress, message_chunk: string | Uint8Array): void
from_base64(input: string, variant?: base64_variants): Uint8Array
output_formats(): Array<Uint8ArrayOutputFormat | StringOutputFormat>
randombytes_buf(length: number, outputFormat?: Uint8ArrayOutputFormat | null): Uint8Array
randombytes_buf(length: number, outputFormat: StringOutputFormat): string
to_base64(input: string | Uint8Array, variant?: base64_variants): string