as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

WrappingContext

Represents a wrapping context. This class provides functionality to securely wrap (encrypt) and unwrap (decrypt) cryptographic keys or sensitive data.

Extends

  • BaseCryptoClass

Constructors

new WrappingContext()

new WrappingContext(): WrappingContext

Returns

WrappingContext

Methods

unwrap()

unwrap(wrapped: ArrayBuffer): Promise<ArrayBuffer>

Unwrap (decrypt) a previously wrapped key or sensitive data and return the unwrapped data.

Parameters

wrapped

ArrayBuffer

The wrapped (encrypted) key or data to be unwrapped.

Throws

  • If the unwrapping operation fails.

Returns

Promise<ArrayBuffer>

Promise A promise that resolves to the unwrapped (decrypted) key or data.


wrap()

wrap(unwrapped: ArrayBuffer): Promise<ArrayBuffer>

Wrap (encrypt) a key or sensitive data and return the wrapped data.

Parameters

unwrapped

ArrayBuffer

The key or data to be wrapped.

Throws

  • If the wrapping operation fails.

Returns

Promise<ArrayBuffer>

Promise A promise that resolves to the wrapped (encrypted) key or data.


Last updated: Jul 22, 2026