You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -39,6 +40,7 @@ Official Node.js SDK for the [Short.io](https://short.io) URL shortening and lin
39
40
-**Permissions Management** - Control user access to links
40
41
-**Full TypeScript Support** - Comprehensive type definitions included
41
42
-**Modern ESM** - Built with ES modules
43
+
-**Encrypted Links** - End-to-end encrypted links with client-side AES-GCM encryption
42
44
-**Automatic Rate Limit Handling** - Built-in retry logic for 429 responses with exponential backoff
43
45
44
46
## Requirements
@@ -527,6 +529,33 @@ await deleteLinkPermission({
527
529
});
528
530
```
529
531
532
+
### Encrypted Links
533
+
534
+
Create end-to-end encrypted links where the destination URL is encrypted client-side before being sent to the API. The decryption key is embedded in the URL hash fragment (`#key`), which browsers never send to servers, ensuring true e2e encryption.
// => base64-encoded AES-GCM key (included in the URL hash fragment)
555
+
```
556
+
557
+
The original URL is encrypted with AES-128-GCM before being sent to the Short.io API. The API only ever sees the encrypted payload (`shortsecure://...`), never the actual destination URL. The decryption key is appended as a hash fragment to the short URL, so it is only available to the end user's browser.
558
+
530
559
## API Reference
531
560
532
561
### Link Operations
@@ -547,6 +576,7 @@ await deleteLinkPermission({
547
576
|`createLinkPublic`| Create link using public API key | 50/s |
548
577
|`createLinkSimple`| Create link (GET method) | 50/s |
549
578
|`createExampleLinks`| Generate example links | 5/10s |
579
+
|`createEncryptedLink`| Create an e2e encrypted link | 50/s |
0 commit comments