2
0

🔥 Remove streamer Pages API endpoint

This commit is contained in:
Baptiste Arnaud
2023-10-06 16:34:10 +02:00
parent b232a9495e
commit bf1f657642
31 changed files with 145 additions and 231 deletions

View File

@@ -0,0 +1,10 @@
import { decryptV1 } from './decryptV1'
import { decryptV2 } from './decryptV2'
export const decrypt = async (
encryptedData: string,
ivHex: string
): Promise<object> => {
if (ivHex.length !== 24) return decryptV1(encryptedData, ivHex)
return decryptV2(encryptedData, ivHex)
}