Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/CryptoModule #339

Merged
merged 39 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
7dabfd3
ref: decoupling cryptor module
mohitpubnub Sep 11, 2023
77d6a96
cryptoModule
mohitpubnub Sep 19, 2023
3382595
lint
mohitpubnub Sep 19, 2023
da1cce6
rever cryptors in config
mohitpubnub Sep 19, 2023
41fbba9
lint fixes
mohitpubnub Sep 19, 2023
4adeadb
Merge branch 'master' into CLEN-1545
mohitpubnub Sep 19, 2023
cad96a7
CryptoModule for web and node
mohitpubnub Sep 25, 2023
28b5777
step definitions for contract tests
mohitpubnub Sep 25, 2023
5d43f19
lib files
mohitpubnub Sep 25, 2023
243056b
fix:es-lint
mohitpubnub Sep 25, 2023
36afc90
let vs const
mohitpubnub Sep 25, 2023
9d43d8d
and some more ts not wanting me to specific about trivials
mohitpubnub Sep 25, 2023
3e1d47f
access modfiers
mohitpubnub Sep 25, 2023
efaea51
refactor-1
mohitpubnub Sep 26, 2023
a3f5930
lint, cleanup test
mohitpubnub Sep 26, 2023
7be4f39
refactor - 2
mohitpubnub Sep 26, 2023
3e9c721
code cleanup in stream encryption with new cryptor
mohitpubnub Sep 26, 2023
6718489
fix: lint issue.
mohitpubnub Sep 26, 2023
230af91
refactor: eliminate ts-ignores by defining file reated types
mohitpubnub Sep 26, 2023
3c041ba
* integration of crypto module * refactoring cryptoModule
mohitpubnub Oct 5, 2023
720b9ef
lib and dist
mohitpubnub Oct 5, 2023
44fc0fd
support for setCipherKey
mohitpubnub Oct 5, 2023
ee976bf
fix: setCipherKey()
mohitpubnub Oct 5, 2023
929191d
lib and dist files
mohitpubnub Oct 5, 2023
7cef59d
fix: staticIV support
mohitpubnub Oct 5, 2023
f88042f
lib and dist
mohitpubnub Oct 5, 2023
8c57c01
refactor: cryptoModule, * added support for PubNub.CryptoModule factory
mohitpubnub Oct 9, 2023
34ac252
fix: types
mohitpubnub Oct 9, 2023
7839164
dist and libs
mohitpubnub Oct 9, 2023
cd913be
fix: test- customEncrypt function
mohitpubnub Oct 9, 2023
ed97050
fix: legacy crypto init, tests
mohitpubnub Oct 9, 2023
acaacad
refactor: typecheck on incoming data for aescbc cryptor
mohitpubnub Oct 9, 2023
992c8fe
code cleanup, * fix: broken file cryptography operations on web
mohitpubnub Oct 12, 2023
c17fca3
lib and dist directories
mohitpubnub Oct 12, 2023
915d355
refactor: crypto initialiser apis default value initialisation
mohitpubnub Oct 15, 2023
11351ec
LICENSE
mohitpubnub Oct 16, 2023
e007216
reverted last commit 11351ec
mohitpubnub Oct 16, 2023
0a8a4a6
update LICENSE
mohitpubnub Oct 16, 2023
c8d347a
PubNub SDK v7.4.0 release.
pubnub-release-bot Oct 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .pubnub.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
---
changelog:
- date: 2023-10-16
version: v7.4.0
changes:
- type: feature
text: "Add crypto module that allows configure SDK to encrypt and decrypt messages."
- type: bug
text: "Improved security of crypto implementation by adding enhanced AES-CBC cryptor."
- date: 2023-09-11
version: v7.3.3
changes:
Expand Down Expand Up @@ -895,7 +902,7 @@ supported-platforms:
- 'Ubuntu 14.04 and up'
- 'Windows 7 and up'
version: 'Pubnub Javascript for Node'
version: '7.3.3'
version: '7.4.0'
sdks:
- full-name: PubNub Javascript SDK
short-name: Javascript
Expand All @@ -911,7 +918,7 @@ sdks:
- distribution-type: source
distribution-repository: GitHub release
package-name: pubnub.js
location: https://github.com/pubnub/javascript/archive/refs/tags/v7.3.3.zip
location: https://github.com/pubnub/javascript/archive/refs/tags/v7.4.0.zip
requires:
- name: 'agentkeepalive'
min-version: '3.5.2'
Expand Down Expand Up @@ -1582,7 +1589,7 @@ sdks:
- distribution-type: library
distribution-repository: GitHub release
package-name: pubnub.js
location: https://github.com/pubnub/javascript/releases/download/v7.3.3/pubnub.7.3.3.js
location: https://github.com/pubnub/javascript/releases/download/v7.4.0/pubnub.7.4.0.js
requires:
- name: 'agentkeepalive'
min-version: '3.5.2'
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## v7.4.0
October 16 2023

#### Added
- Add crypto module that allows configure SDK to encrypt and decrypt messages.

#### Fixed
- Improved security of crypto implementation by adding enhanced AES-CBC cryptor.

## v7.3.3
September 11 2023

Expand Down
48 changes: 25 additions & 23 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
PubNub Real-time Cloud-Hosted Push API and Push Notification Client Frameworks
Copyright (c) 2013 PubNub Inc.
http://www.pubnub.com/
http://www.pubnub.com/terms
PubNub Software Development Kit License Agreement
Copyright © 2023 PubNub Inc. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Subject to the terms and conditions of the license, you are hereby granted
a non-exclusive, worldwide, royalty-free license to (a) copy and modify
the software in source code or binary form for use with the software services
and interfaces provided by PubNub, and (b) redistribute unmodified copies
of the software to third parties. The software may not be incorporated in
or used to provide any product or service competitive with the products
and services of PubNub.

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
The above copyright notice and this license shall be included
in or with all copies or substantial portions of the software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
This license does not grant you permission to use the trade names, trademarks,
service marks, or product names of PubNub, except as required for reasonable
and customary use in describing the origin of the software and reproducing
the content of this license.

PubNub Real-time Cloud-Hosted Push API and Push Notification Client Frameworks
Copyright (c) 2013 PubNub Inc.
http://www.pubnub.com/
http://www.pubnub.com/terms
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
EVENT SHALL PUBNUB OR THE AUTHORS OR COPYRIGHT HOLDERS OF THE SOFTWARE BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

https://www.pubnub.com/
https://www.pubnub.com/terms
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ Watch [Getting Started with PubNub JS SDK](https://app.dashcam.io/replay/64ee0d2
npm install pubnub
```
* or download one of our builds from our CDN:
* https://cdn.pubnub.com/sdk/javascript/pubnub.7.3.3.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.7.3.3.min.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.7.4.0.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.7.4.0.min.js

2. Configure your keys:

Expand Down
Loading
Loading