
Keyring handling and storage should be handled in the application, as localStorage may not meet the durability requirements of the application, for example.
31 lines
775 B
JavaScript
31 lines
775 B
JavaScript
/**
|
|
* Export high level API functions.
|
|
* Usage:
|
|
*
|
|
* import { encrypt } from 'openpgp';
|
|
* encrypt({ message, publicKeys });
|
|
*/
|
|
export {
|
|
encrypt, decrypt, sign, verify,
|
|
generateKey, reformatKey, revokeKey, decryptKey, encryptKey,
|
|
generateSessionKey, encryptSessionKey, decryptSessionKeys
|
|
} from './openpgp';
|
|
|
|
export { Key, readKey, readKeys } from './key';
|
|
|
|
export { Signature, readSignature } from './signature';
|
|
|
|
export { Message, readMessage } from './message';
|
|
|
|
export { CleartextMessage, readCleartextMessage } from './cleartext';
|
|
|
|
export * from './packet';
|
|
|
|
export { default as stream } from '@openpgp/web-stream-tools';
|
|
|
|
export * from './encoding/armor';
|
|
|
|
export { default as enums } from './enums';
|
|
|
|
export { default as config } from './config/config';
|