ephem 0.1.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -147,7 +147,7 @@ For projects without a bundler, you can use the pre-built unpkg/CDN version. Thi
147
147
 
148
148
  ```html
149
149
  <!-- Load Ephem client from CDN -->
150
- <script src="https://unpkg.com/ephem/dist/client/index.global.js"></script>
150
+ <script src="https://unpkg.com/ephem/dist/index.global.js"></script>
151
151
 
152
152
  <script>
153
153
  "use strict";
@@ -478,4 +478,4 @@ const ephem = new Ephem({
478
478
  Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
479
479
 
480
480
  ## License
481
- [ISC](/LICENSE)
481
+ [ISC](https://github.com/newben420/ephem/blob/main/LICENSE)
@@ -0,0 +1 @@
1
+ "use strict";var EphemClient=(()=>{var a=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var A=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var h=(e,r)=>{for(var n in r)a(e,n,{get:r[n],enumerable:!0})},w=(e,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of A(r))!g.call(e,t)&&t!==n&&a(e,t,{get:()=>r[t],enumerable:!(o=p(r,t))||o.enumerable});return e};var E=e=>w(a({},"__esModule",{value:!0}),e);var C={};h(C,{seal:()=>S});function m(e){let r=e.replace(/-----BEGIN PUBLIC KEY-----/,"").replace(/-----END PUBLIC KEY-----/,"").replace(/\s+/g,""),n=atob(r),o=new Uint8Array(n.length);for(let t=0;t<n.length;t++)o[t]=n.charCodeAt(t);return o.buffer}function s(e){let r=e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength),n="";for(let o=0;o<r.length;o++)n+=String.fromCharCode(r[o]||0);return btoa(n)}async function S(e,r,n,o=!1){if(!globalThis.crypto?.subtle){if(o)return`##INSECURE##${e}`;throw new Error("EphemClient requires a secure context (HTTPS or localhost).")}let t=globalThis.crypto.subtle,c=new TextEncoder,i=await t.generateKey({name:"AES-GCM",length:256},!0,["encrypt"]),y=crypto.getRandomValues(new Uint8Array(12)),l=await t.encrypt({name:"AES-GCM",iv:y,additionalData:c.encode(n)},i,c.encode(e)),f=await t.importKey("spki",m(r),{name:"RSA-OAEP",hash:"SHA-256"},!1,["encrypt"]),u=await t.exportKey("raw",i),b=await t.encrypt({name:"RSA-OAEP"},f,u);return[n,s(y),s(l),s(b)].join(".")}return E(C);})();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ephem",
3
- "version": "0.1.0",
4
- "description": "Ephemeral client-side encryption capsules for secure data-in-transit",
3
+ "version": "1.0.1",
4
+ "description": "Robust, Ephemeral End-to-End Encryption for the Application Layer. Secure data-in-transit with disposable capsules.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",
@@ -24,15 +24,25 @@
24
24
  },
25
25
  "scripts": {
26
26
  "build": "tsup",
27
- "build:cdn": "tsup src/client/index.ts --format iife --global-name EphemClient --minify",
28
27
  "dev": "tsup --watch",
29
28
  "prepublishOnly": "npm run build"
30
29
  },
31
30
  "keywords": [
32
31
  "encryption",
33
32
  "ephemeral",
33
+ "zero-trust",
34
+ "application-layer-encryption",
35
+ "e2ee",
36
+ "hybrid-encryption",
37
+ "forward-secrecy",
38
+ "rsa-oaep",
39
+ "aes-gcm",
40
+ "webcrypto",
41
+ "security",
34
42
  "client-side",
35
- "security"
43
+ "secure-forms",
44
+ "pii-protection",
45
+ "data-in-transit"
36
46
  ],
37
47
  "author": "Gbiang Benedict Mashingil <gbiangb@gmail.com> (https://gbm.name.ng)",
38
48
  "license": "ISC",