ephem 0.1.0 → 1.0.0

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.
@@ -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.0",
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",
@@ -47,4 +57,4 @@
47
57
  "README.md",
48
58
  "LICENSE"
49
59
  ]
50
- }
60
+ }