Get started with openpgp CDN
LGPL-3.0 licensed
OpenPGP: library for encryption, decryption, digital signatures, and key management per OpenPGP standard.
Tags:- crypto
- pgp
- gpg
- openpgp
Stable version
Copied!
How to start using openpgp CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with openpgp CDN - cdnhub.io</title>
<script src="https://cdn.jsdelivr.net/npm/openpgp@5.11.1/dist/openpgp.min.js"></script>
</head>
<body>
<script>
async function encryptMessage() {
const key = await OpenPGP.generateKey({
type: OpenPGP.KeyType.RSA,
bits: 2048,
});
const message = "Hello, World!";
const encryptedData = await OpenPGP.encrypt({
key,
data: message,
});
console.log("Encrypted data:", encryptedData);
const decryptedData = await OpenPGP.decrypt({
encryptedData,
privateKey: key,
});
console.log("Decrypted data:", decryptedData.data.toString());
}
encryptMessage().catch((err) => console.error("Error:", err));
</script>
</body>
</html>
All versions
0.10.1
0.10.2
0.10.3
0.11.0
0.11.1
1.0.0
1.0.1
1.1.0
1.2.0
1.3.0
1.4.0
1.4.1
1.5.0
1.5.1
1.5.2
1.5.3
1.5.4
1.5.5
1.5.6
1.5.7
1.6.0
1.6.1
1.6.2
2.0.0
2.0.1
2.1.0
2.2.0
2.2.1
2.2.2
2.3.0
2.3.1
2.3.2
2.3.3
2.3.4
2.3.5
2.3.6
2.3.7
2.3.8
2.4.0
2.5.0
2.5.1
2.5.10
2.5.11
2.5.12
2.5.13
2.5.14
2.5.2
2.5.3
2.5.4
2.5.5
2.5.6
2.5.7
2.5.8
2.5.9
2.6.0
2.6.1
2.6.2
3.0.0
3.0.1
3.0.10
3.0.11
3.0.12
3.0.13
3.0.2
3.0.3
3.0.4
3.0.5
3.0.6
3.0.7
3.0.8
3.0.9
3.1.0
3.1.1
3.1.2
3.1.3
4.0.0
4.0.1
4.0.2
4.1.0
4.1.1
4.1.2
4.10.0
4.10.1
4.10.10
4.10.2
4.10.3
4.10.4
4.10.5
4.10.6
4.10.7
4.10.8
4.10.9
4.2.0
4.2.1
4.2.2
4.3.0
4.4.0
4.4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