Skip to content

[PB-5937] feature/upload logic #386

Open
CandelR wants to merge 7 commits intofeature/PB-5937-file-upload-logicfrom
feature/PB-5937-file-upload-logic-and-encription-2
Open

[PB-5937] feature/upload logic #386
CandelR wants to merge 7 commits intofeature/PB-5937-file-upload-logicfrom
feature/PB-5937-file-upload-logic-and-encription-2

Conversation

@CandelR
Copy link
Contributor

@CandelR CandelR commented Mar 13, 2026

  • Implemented file upload logic and encryption in share extension

@CandelR CandelR requested a review from TamaraFinogina March 13, 2026 13:19
@CandelR CandelR self-assigned this Mar 13, 2026
@CandelR CandelR added the enhancement New feature or request label Mar 13, 2026
@CandelR CandelR force-pushed the feature/PB-5937-file-upload-logic branch from 43d7078 to 4d75ace Compare March 16, 2026 10:21
@sonarqubecloud
Copy link

@CandelR CandelR requested a review from TamaraFinogina March 16, 2026 15:57
import { generateFileKey } from '../../network/crypto';

/** Cryptographically secure random bytes via Hermes globalThis.crypto */
const generateSecureRandomBytes = (size: number): Buffer => {

Choose a reason for hiding this comment

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

Maybe using noble is easier, it's already in dependencies anyway

import { randomBytes } from '@noble/hashes/utils.js';
const randomBytesArray = randomBytes(size);

};

/** RIPEMD160 via @noble/hashes/legacy (pure-JS) — share extension can't link arbitrary native modules */
export const computeRipemd160Digest = (input: Buffer | string): Buffer => {

Choose a reason for hiding this comment

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

I think you never use string input, so maybe it can be just buffer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants