import { Credential } from '../../entities/credential.entity';

export interface EncryptResult {
  encrypted: Buffer;
  iv: Buffer;
}

export interface CredentialVaultPort {
  encrypt(plaintext: string): EncryptResult;
  decrypt(encrypted: Buffer, iv: Buffer): string;
  findById(id: string): Promise<Credential | null>;
}
