Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

Commit

Permalink
Release v1.1.27
Browse files Browse the repository at this point in the history
  • Loading branch information
atifsaddique211f committed Apr 4, 2019
1 parent 98dd8db commit d5c53c7
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 37 deletions.
4 changes: 2 additions & 2 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

Official Angular cross-platform client for the CTemplar secure email service available at [https://ctemplar.com](https://ctemplar.com).

RELEASE VERSION : **v1.1.26**
RELEASE VERSION : **v1.1.27**

SHA-256 checksum of `index.html` : **87ac27ea2d0e96d4a432b5ed9996b47f6ae638c3d46854f3cec42e2efdb4b556**
SHA-256 checksum of `index.html` : **fe98509ef0a4d0d438b4f1a859e0fe98d516ecb0734d9a3acae59fcc2ba54b96**

Find full release code and distribution at : [https://github.com/CTemplar/webclient/releases/latest](https://github.com/CTemplar/webclient/releases/latest)

Expand Down
30 changes: 0 additions & 30 deletions dist/assets/static/pgp-worker-encrypt.js

This file was deleted.

27 changes: 26 additions & 1 deletion dist/assets/static/pgp-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,18 @@ var decryptedSecureMsgPrivKeyObj;
onmessage = function (event) {
if (event.data.clear) {
decryptedPrivKeys = {};
} else if (event.data.generateKeys) {
}
else if (event.data.encrypt) {
encryptContent(event.data.content, event.data.publicKeys).then(data => {
postMessage({encryptedContent: data, encrypted: true, callerId: event.data.callerId});
})
}
else if (event.data.encryptSecureMessageReply) {
encryptContent(event.data.content, event.data.publicKeys).then(data => {
postMessage({encryptedContent: data, encryptSecureMessageReply: true});
})
}
else if (event.data.generateKeys) {
generateKeys(event.data.options).then((data) => {
postMessage({
generateKeys: true,
Expand Down Expand Up @@ -131,4 +142,18 @@ async function changePassphrase(passphrase) {
}
}
return {keys: privkeys, changePassphrase: true};
}


async function encryptContent(data, publicKeys) {
if (!data) {
return null;
}
const options = {
data: data,
publicKeys: publicKeys.map(item => openpgp.key.readArmored(item).keys[0])
};
return openpgp.encrypt(options).then(ciphertext => {
return ciphertext.data.replace(/(\r\n|\n|\r)((\r\n|\n|\r)\S+(\r\n|\n|\r)-+END PGP)/m, "$2");
})
}
2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ <h1 class="page-title text-secondary">
</div>
</noscript>
<app-root></app-root>
<script type="text/javascript" src="runtime.342720d51562858f718f.js" integrity="sha384-sbe/lkBoZVeAemtE8Ap31YmZbjSQHhEWK4Tx6XJS1OmXZ4PhPm1atmlcVrGP/7wv" crossorigin="anonymous"></script><script type="text/javascript" src="polyfills.c6cdf1b91f8032c61d53.js" integrity="sha384-8XtHUNH2tfyVAzUAJGrQH+mA64AcRQdcAdn3rJ1SRQ7deHdCYaRDNxouJcZ3EwkE" crossorigin="anonymous"></script><script type="text/javascript" src="scripts.2b355891e0dd05f2cdd5.js" integrity="sha384-mYWPHV3OvTp4Rm5Bb9cerNTGt0LBYdnEEV5CtcuAX5cerXkjPYrVC7KstOfnun6O" crossorigin="anonymous"></script><script type="text/javascript" src="main.57d0b1c182bd53047ff0.js" integrity="sha384-DdFKnYe+SfCT95tKVnwI8YVFelmuFAJBgiUp2mvcLiQbt0Q0FxByBaAkJjhzEtSc" crossorigin="anonymous"></script></body>
<script type="text/javascript" src="runtime.342720d51562858f718f.js" integrity="sha384-8xi89nuzatGqcjjOqHic/JW7PmB6o8PlTbJ8qum9GMr66yN95J38lo1kZgV967io" crossorigin="anonymous"></script><script type="text/javascript" src="polyfills.c6cdf1b91f8032c61d53.js" integrity="sha384-8XtHUNH2tfyVAzUAJGrQH+mA64AcRQdcAdn3rJ1SRQ7deHdCYaRDNxouJcZ3EwkE" crossorigin="anonymous"></script><script type="text/javascript" src="scripts.2b355891e0dd05f2cdd5.js" integrity="sha384-mYWPHV3OvTp4Rm5Bb9cerNTGt0LBYdnEEV5CtcuAX5cerXkjPYrVC7KstOfnun6O" crossorigin="anonymous"></script><script type="text/javascript" src="main.42743570a6def9d03cad.js" integrity="sha384-kvvI3+Kd/LdmRBzXm+2b8bMz0Zay3OerA+qFHbztxQ6JSwb8jYRB2YofaYjPVf7z" crossorigin="anonymous"></script></body>

</html>
1 change: 1 addition & 0 deletions dist/main.42743570a6def9d03cad.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/main.57d0b1c182bd53047ff0.js

This file was deleted.

2 changes: 1 addition & 1 deletion dist/runtime.342720d51562858f718f.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "CTemplar",
"version": "1.1.21",
"version": "1.1.27",
"license": "MIT",
"scripts": {
"ng": "ng",
Expand Down

0 comments on commit d5c53c7

Please sign in to comment.