🔥 Remove streamer Pages API endpoint
This commit is contained in:
10
packages/lib/api/encryption/decrypt.ts
Normal file
10
packages/lib/api/encryption/decrypt.ts
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user