mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
refactor(server)*: tsconfigs (#2689)
* refactor(server): tsconfigs * chore: dummy commit * fix: start.sh * chore: restore original entry scripts
This commit is contained in:
8
server/src/domain/crypto/crypto.repository.ts
Normal file
8
server/src/domain/crypto/crypto.repository.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export const ICryptoRepository = 'ICryptoRepository';
|
||||
|
||||
export interface ICryptoRepository {
|
||||
randomBytes(size: number): Buffer;
|
||||
hashSha256(data: string): string;
|
||||
hashBcrypt(data: string | Buffer, saltOrRounds: string | number): Promise<string>;
|
||||
compareBcrypt(data: string | Buffer, encrypted: string): boolean;
|
||||
}
|
||||
1
server/src/domain/crypto/index.ts
Normal file
1
server/src/domain/crypto/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './crypto.repository';
|
||||
Reference in New Issue
Block a user