Encrypt data with a public key using asymmetric cryptography
The data to encrypt
The public key for encryption
Promise resolving to encrypted data
Decrypt data with a private key using asymmetric cryptography
The encrypted data
The private key for decryption
Promise resolving to decrypted data
Generate a new key pair for asymmetric cryptography
Promise resolving to public and private key pair
Encrypt data with a wallet's public key using ECDH cryptography Uses platform-appropriate ECDH implementation (eccrypto vs eccrypto-js)
The data to encrypt (string)
The wallet's public key (secp256k1)
Promise resolving to encrypted data as hex string
Decrypt data with a wallet's private key using ECDH cryptography Uses platform-appropriate ECDH implementation (eccrypto vs eccrypto-js)
The encrypted data as hex string
The wallet's private key (secp256k1)
Promise resolving to decrypted data as string
Encrypt data with a password using PGP password-based encryption Uses platform-appropriate OpenPGP implementation with consistent format
The data to encrypt as Uint8Array
The password for encryption (typically wallet signature)
Promise resolving to encrypted data as Uint8Array
Decrypt data with a password using PGP password-based decryption Uses platform-appropriate OpenPGP implementation with consistent format
The encrypted data as Uint8Array
The password for decryption (typically wallet signature)
Promise resolving to decrypted data as Uint8Array
Encryption operations that require different implementations per platform