mirror of
https://git.um-react.app/um/um-react.git
synced 2025-11-28 03:23:02 +00:00
20 lines
570 B
TypeScript
20 lines
570 B
TypeScript
import { CryptoFactory } from './CryptoBase';
|
|
|
|
import { QMC1Crypto } from './qmc/qmc_v1';
|
|
import { QMC2Crypto } from './qmc/qmc_v2';
|
|
import { XiamiCrypto } from './xiami/xiami';
|
|
|
|
export const allCryptoFactories: CryptoFactory[] = [
|
|
// Xiami (*.xm)
|
|
() => new XiamiCrypto(),
|
|
|
|
// QMCv2 (*.mflac)
|
|
() => new QMC2Crypto(),
|
|
|
|
// Crypto that does not implement "checkBySignature" or need to decrypt the entire file and then check audio type,
|
|
// should be moved to the bottom of the list for performance reasons.
|
|
|
|
// QMCv1 (*.qmcflac)
|
|
() => new QMC1Crypto(),
|
|
];
|