mirror of
https://git.um-react.app/um/um-react.git
synced 2025-11-28 03:23:02 +00:00
15 lines
324 B
TypeScript
15 lines
324 B
TypeScript
import type { CryptoBase } from '../CryptoBase';
|
|
|
|
export class TransparentCrypto implements CryptoBase {
|
|
cryptoName = 'Transparent';
|
|
checkByDecryptHeader = true;
|
|
|
|
async decrypt(buffer: ArrayBuffer): Promise<Blob> {
|
|
return new Blob([buffer]);
|
|
}
|
|
|
|
public static make() {
|
|
return new TransparentCrypto();
|
|
}
|
|
}
|