Skip to content

Commit e3f8949

Browse files
committed
refactor(encryptor): export generateSalt
1 parent 6db7b67 commit e3f8949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/core/Encryptor/Encryptor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class Encryptor implements WithKeyEncryptor<EncryptionKey, Json> {
7878
* @param size - The number of bytes for the salt. Defaults to `constant.SALT_BYTES_COUNT`.
7979
* @returns The base64-encoded salt string.
8080
*/
81-
private generateSalt = (size = SALT_BYTES_COUNT) => {
81+
generateSalt = (size = SALT_BYTES_COUNT) => {
8282
const view = new Uint8Array(size);
8383
// @ts-expect-error - globalThis is not recognized by TypeScript
8484
global.crypto.getRandomValues(view);

0 commit comments

Comments
 (0)