mirror of
https://git.um-react.app/um/um-react.git
synced 2025-11-28 03:23:02 +00:00
19 lines
482 B
TypeScript
19 lines
482 B
TypeScript
import { DecipherInstance, DecipherOK, DecipherResult, Status } from '~/decrypt-worker/Deciphers.ts';
|
|
|
|
export class TransparentDecipher implements DecipherInstance {
|
|
cipherName = 'none';
|
|
|
|
async decrypt(buffer: Uint8Array<ArrayBuffer>): Promise<DecipherResult | DecipherOK> {
|
|
return {
|
|
cipherName: 'None',
|
|
status: Status.OK,
|
|
data: buffer,
|
|
message: 'No decipher applied',
|
|
};
|
|
}
|
|
|
|
public static make() {
|
|
return new TransparentDecipher();
|
|
}
|
|
}
|