
Product
Unify Your Security Stack with Socket Basics
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.
@types/xml-encryption
Advanced tools
TypeScript definitions for xml-encryption
npm install --save @types/xml-encryption
This package contains type definitions for xml-encryption (https://github.com/auth0/node-xml-encryption#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xml-encryption.
/// <reference types="node" />
export type Utf8AsciiBinaryEncoding = "utf8" | "ascii" | "binary";
export type KeyEncryptionAlgorithm =
| "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"
| "http://www.w3.org/2001/04/xmlenc#rsa-1_5";
export type EncryptionAlgorithm =
| "http://www.w3.org/2001/04/xmlenc#aes128-cbc"
| "http://www.w3.org/2001/04/xmlenc#aes256-cbc"
| "http://www.w3.org/2009/xmlenc11#aes128-gcm"
| "http://www.w3.org/2009/xmlenc11#aes256-gcm"
| "http://www.w3.org/2001/04/xmlenc#tripledes-cbc";
export interface EncryptOptions extends EncryptKeyOptions {
encryptionAlgorithm: EncryptionAlgorithm;
warnInsecureAlgorithm?: boolean | undefined;
input_encoding?: Utf8AsciiBinaryEncoding | undefined;
}
export interface EncryptKeyOptions {
rsa_pub: string | Buffer;
pem: string | Buffer;
keyEncryptionAlgorithm: KeyEncryptionAlgorithm;
disallowEncryptionWithInsecureAlgorithm?: boolean | undefined;
}
export interface DecryptOptions {
key: string | Buffer;
disallowDecryptionWithInsecureAlgorithm?: boolean | undefined;
warnInsecureAlgorithm?: boolean | undefined;
}
export function decrypt(
xml: string,
options: DecryptOptions,
callback: (error: Error | null, result: string) => void,
): void;
export function decryptKeyInfo(doc: string, options: DecryptOptions): Buffer;
export function encrypt(
content: string,
options: EncryptOptions,
callback: (error: Error, result: string) => void,
): void;
export function encryptKeyInfo(
symmetricKey: string | Buffer,
options: EncryptKeyOptions,
callback: (error: Error | null, result: string) => void,
): void;
These definitions were written by Chris Midgley.
FAQs
TypeScript definitions for xml-encryption
We found that @types/xml-encryption demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.
Product
Socket is launching experimental protection for the Hugging Face ecosystem, scanning for malware and malicious payload injections inside model files to prevent silent AI supply chain attacks.
Research
/Security News
The Socket Threat Research Team uncovered a coordinated campaign that floods the Chrome Web Store with 131 rebranded clones of a WhatsApp Web automation extension to spam Brazilian users.