mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-07-05 21:58:56 +08:00
修复解密问题
This commit is contained in:
parent
37929cf332
commit
d50b70aba7
@ -15,7 +15,7 @@ export const aesEncrypt = (text: string, b64Key: string) => {
|
||||
export const aesDecrypt = (text: string, b64Key: string) => {
|
||||
// const decipher = createDecipheriv('aes-128-ecb', Buffer.from(key, 'base64'), '')
|
||||
// return Buffer.concat([decipher.update(Buffer.from(text, 'base64')), decipher.final()]).toString()
|
||||
return aesDecryptSync(btoa(text), b64Key, '', AES_MODE.ECB_128_NoPadding)
|
||||
return aesDecryptSync(text, b64Key, '', AES_MODE.ECB_128_NoPadding)
|
||||
}
|
||||
|
||||
export const rsaEncrypt = (buffer: Buffer, key: string): string => {
|
||||
|
2
src/types/app.d.ts
vendored
2
src/types/app.d.ts
vendored
@ -73,5 +73,3 @@ declare global {
|
||||
}
|
||||
// var process: Process
|
||||
}
|
||||
|
||||
export {}
|
||||
|
5
src/types/shims.d.ts
vendored
5
src/types/shims.d.ts
vendored
@ -1,5 +0,0 @@
|
||||
|
||||
// declare module 'crypto' {
|
||||
// import crypto from 'react-native-quick-crypto'
|
||||
// export default crypto
|
||||
// }
|
Loading…
x
Reference in New Issue
Block a user