Revaycolizer
Revaycolizer
Explore posts from servers
NNuxt
Created by Revaycolizer on 11/2/2024 in #❓・help
My UI won't update even though I successfully receive response
await refreshNuxtData() works
11 replies
NNuxt
Created by Revaycolizer on 11/2/2024 in #❓・help
My UI won't update even though I successfully receive response
@kapa.ai
11 replies
NNuxt
Created by Revaycolizer on 11/2/2024 in #❓・help
My UI won't update even though I successfully receive response
But below is my API seems it cannot apply to the code you wrote
export default defineEventHandler(async (event) => {
const body = await readBody(event)

const { test, name } = body
if (!test||!name){
return []
}
setResponseStatus(event, 202)

const data =[
{
id:1,
test: test,
name: name
}
]
return data
})
export default defineEventHandler(async (event) => {
const body = await readBody(event)

const { test, name } = body
if (!test||!name){
return []
}
setResponseStatus(event, 202)

const data =[
{
id:1,
test: test,
name: name
}
]
return data
})
11 replies
CCConvex Community
Created by Revaycolizer on 3/26/2024 in #show-and-tell
Messaging web app
Yes
63 replies
CCConvex Community
Created by Revaycolizer on 3/26/2024 in #show-and-tell
Messaging web app
Which browser are you using?
63 replies
CCConvex Community
Created by Revaycolizer on 3/26/2024 in #show-and-tell
Messaging web app
Well I'll try to check what's the problem there
63 replies
CCConvex Community
Created by Revaycolizer on 3/26/2024 in #show-and-tell
Messaging web app
Are you clicking at that point ☝️?
63 replies
CCConvex Community
Created by Revaycolizer on 3/26/2024 in #show-and-tell
Messaging web app
Just click on any user and you will be redirected to the inbox
63 replies
CCConvex Community
Created by Revaycolizer on 3/26/2024 in #show-and-tell
Messaging web app
There's a plus at the bottom right
63 replies
CCConvex Community
Created by Revaycolizer on 3/26/2024 in #show-and-tell
Messaging web app
No description
63 replies
CCConvex Community
Created by Revaycolizer on 3/26/2024 in #show-and-tell
Messaging web app
No description
63 replies
CCConvex Community
Created by Revaycolizer on 3/26/2024 in #show-and-tell
Messaging web app
Absolutely I think you get the concept and also decryption occurs server side as I used SSR I fetch the encrypted messages but during rendering I performed decryption under the hood and nothing will be doubted , it will be seen as just there is no encryption while it is automatically happening but under the hood
63 replies
CCConvex Community
Created by Revaycolizer on 3/26/2024 in #show-and-tell
Messaging web app
Yes exactly
63 replies
CCConvex Community
Created by Revaycolizer on 3/26/2024 in #show-and-tell
Messaging web app
The users are not the ones encrypting when they type and send the message,they just see what they wrote but encryption is done under the hood
63 replies
CCConvex Community
Created by Revaycolizer on 3/26/2024 in #show-and-tell
Messaging web app
The key is used to encrypt each message of the user and decrypt it you can think of the way to make it dynamic if you to achieve it that maybe use the userId for encryption or decryption which would have a lot of work around as to decrypt the messages in every conversation with the correct secret key
63 replies
CCConvex Community
Created by Revaycolizer on 3/26/2024 in #show-and-tell
Messaging web app
You can use env variables for that use the same key for encryption and decryption
63 replies
CCConvex Community
Created by Revaycolizer on 3/26/2024 in #show-and-tell
Messaging web app
Encryption
const decryptedB = CryptoJS.AES.encrypt(encryptedImage, 'secret key'').toString()
console.log(decryptedB)
// const decryptedImage = decryptedBytes.toString(CryptoJS.enc.Utf8);
return decryptedB;
};
const decryptedB = CryptoJS.AES.encrypt(encryptedImage, 'secret key'').toString()
console.log(decryptedB)
// const decryptedImage = decryptedBytes.toString(CryptoJS.enc.Utf8);
return decryptedB;
};
63 replies
CCConvex Community
Created by Revaycolizer on 3/26/2024 in #show-and-tell
Messaging web app
Decryption
const decryptImage = (encryptedImage: any) => {
const b = CryptoJS.AES.decrypt(encryptedImage, 'secret key')

const i = b.toString(CryptoJS.enc.Utf8);

return i
}
const decryptImage = (encryptedImage: any) => {
const b = CryptoJS.AES.decrypt(encryptedImage, 'secret key')

const i = b.toString(CryptoJS.enc.Utf8);

return i
}
63 replies
CCConvex Community
Created by Revaycolizer on 3/26/2024 in #show-and-tell
Messaging web app
Worry out give me a few minutes I'm sending the implementation of encryption and decryption
63 replies
CCConvex Community
Created by Revaycolizer on 3/26/2024 in #show-and-tell
Messaging web app
Nope
63 replies