mirror of
https://github.com/immich-app/immich.git
synced 2025-11-28 07:49:52 +09:00
chore(server): rename domain repositories -> interfaces (#8147)
rename domain repositories
This commit is contained in:
11
server/src/interfaces/crypto.interface.ts
Normal file
11
server/src/interfaces/crypto.interface.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export const ICryptoRepository = 'ICryptoRepository';
|
||||
|
||||
export interface ICryptoRepository {
|
||||
randomBytes(size: number): Buffer;
|
||||
randomUUID(): string;
|
||||
hashFile(filePath: string | Buffer): Promise<Buffer>;
|
||||
hashSha256(data: string): string;
|
||||
hashSha1(data: string | Buffer): Buffer;
|
||||
hashBcrypt(data: string | Buffer, saltOrRounds: string | number): Promise<string>;
|
||||
compareBcrypt(data: string | Buffer, encrypted: string): boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user