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

Expose argon2 in wasm #680

Closed
wants to merge 1 commit into from
Closed

Expose argon2 in wasm #680

wants to merge 1 commit into from

Conversation

Hinton
Copy link
Member

@Hinton Hinton commented Mar 26, 2024

Type of change

- [ ] Bug fix
- [x] New feature development
- [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [ ] Build/deploy pipeline (DevOps)
- [ ] Other

Objective

We need to expose the argon2 module in WASM for the CLI.

Before you submit

  • Please add unit tests where it makes sense to do so

iterations: u32,
memory: u32,
parallelism: u32,
) -> String {
Copy link
Member Author

Choose a reason for hiding this comment

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

We may be able to use Uint8Array here instead and remove the need for b64

Copy link

codecov bot commented Mar 26, 2024

Codecov Report

Attention: Patch coverage is 0% with 25 lines in your changes are missing coverage. Please review.

Project coverage is 60.46%. Comparing base (67e743f) to head (99d5178).
Report is 2 commits behind head on main.

Files Patch % Lines
crates/bitwarden-wasm/src/client.rs 0.00% 25 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #680      +/-   ##
==========================================
- Coverage   60.61%   60.46%   -0.15%     
==========================================
  Files         170      170              
  Lines       10387    10412      +25     
==========================================
  Hits         6296     6296              
- Misses       4091     4116      +25     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Hinton
Copy link
Member Author

Hinton commented Apr 9, 2024

Replaced by #691

@Hinton Hinton closed this Apr 9, 2024
dani-garcia added a commit that referenced this pull request Apr 15, 2024
## Type of change
```
- [ ] Bug fix
- [x] New feature development
- [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [x] Build/deploy pipeline (DevOps)
- [ ] Other
```

## Objective
Continuation of #680 

I've created workflows to publish the WASM builds to NPM, so that it can
be used from the CLI client.

The publishing step is based on the NAPI builds, and I've tested it
against the Github NPM registry. We'll need to get a build going and
published on the NPM registry to be able to use it on the CLI.

---------

Co-authored-by: Hinton <hinton@users.noreply.github.com>
@Hinton Hinton deleted the ps/argon2 branch May 2, 2024 13:56
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.

1 participant