browserify / browserify/randombytes
Implement browser getRandomValues without depending on crypto
- Ngôn ngữ chính
- JavaScript
- Star
- 102
- Fork
- 47
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
This is based on this [discussion](https://github.com/browserify/crypto-browserify/issues/232)
TL;DR: I propose having an implementation of `getRandomValues` that does not depend on a native implementation of crypto.
I am having an issue with bundling my code and running it in a non-browser environment, using modules that depend on `crypto`, which depends on `randombytes`' implementation of `getRandomValues`. If I bundle my code in "browser" mode, I get the error `'Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11'`.
If I don't bundle it in browser mode but force browser fallback for `crypto-browserify` (which is necessary in my use-case, the javascript VM I'm using does not implement `crypto`), then I get a circular dependency and getRandomBytes is never implemented.
Is it possible to implement it in this package? If not is there any particular reason? And can I help in some way?
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu bằng cách xem xét triển khai getRandomValues cho browser của package này và cuộc thảo luận crypto-browserify được liên kết. Theo dõi cách randombytes được chọn ở chế độ browser và cách fallback của crypto-browserify tạo ra dependency vòng tròn đã được báo cáo. Công việc được xem là hoàn tất khi một triển khai được hỗ trợ hoạt động trong JavaScript VM không phải browser được mô tả mà không phụ thuộc vào triển khai crypto native.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript
- Lĩnh vực
- cryptography
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100