Skip to content

encrypt_properties - #44

Closed
akash-gautam07 wants to merge 18 commits into
masterfrom
encrypt_prop
Closed

encrypt_properties#44
akash-gautam07 wants to merge 18 commits into
masterfrom
encrypt_prop

Conversation

@akash-gautam07

@akash-gautam07 akash-gautam07 commented Jul 31, 2023

Copy link
Copy Markdown

This PR creates a encrypt_properties case in the tsub-js, to provide functionality for encrypting the properties.

@saiprasannasastry

Copy link
Copy Markdown

add a description

Comment thread src/transformers.ts Outdated
Comment thread package.json Outdated
@silesky

silesky commented Aug 3, 2023

Copy link
Copy Markdown

@akash-gautam07 this needs tests ;-)

Comment thread src/transformers.ts Outdated
Comment thread src/transformers.ts Outdated
@saiprasannasastry

Copy link
Copy Markdown

@silesky updated the tests :)

@silesky silesky left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just some small changes =S

@saiprasannasastry

saiprasannasastry commented Aug 14, 2023

Copy link
Copy Markdown

Looks good, just some small changes =S

was the interface the only comment? i'd like an approval if there are no more comments because of timezone difference, but there is an issue in code, with seed being passed i am not getting a stable cipher text.
If you have any understanding would love your review on that aspect as well

Comment thread package.json Outdated
Comment thread package.json Outdated
},
"devDependencies": {
"@types/jest": "^27.4.0",
"@types/node": "^16.18.40",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we actually need node types here? It's better to not have any node types in an isomorphic package, since it ensures we don't accidentally use node built-ins in our code (I sometimes add them for tests, but not ideal).

@saiprasannasastry

Copy link
Copy Markdown

@akash-gautam07 there's an assertion that's failed . we are not getting stable identifiers can you fix this

Comment thread src/transformers.ts
const labelBytes = forge.util.encodeUtf8(label)
let ciphertextBase64: string

if (seed) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be !seed?

@akash-gautam07

Copy link
Copy Markdown
Author

@akash-gautam07 there's an assertion that's failed . we are not getting stable identifiers can you fix this

@saiprasannasastry Isn't it the purpose of utilizing RSA-OAEP is to ensure the generation of new ciphertexts each time? The tsub code also generates different encrypted ciphers each time.

@codecov

codecov Bot commented Jun 30, 2025

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@silesky silesky closed this Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants