您好,这是我的加密代码,我正在尝试通过 json 解密 Android 中的代码。我可以在 Node js 中解密这段代码。但是当我尝试在 android 中解密时,发生了错误,所以有人建议我问题发生在哪里,无论是在我的 Node js 代码中还是在 android 中。
app.post('/insert', function (req,res){
var data = {
userId:req.body.fname,
firstName:req.body.fname
};
var cipher = crypto.createCipher('aes128', 'a password');
data.firstName = cipher.update(data.firstName, 'utf8','base64' );
data.firstName += cipher.final('base64');
console.log(data);
con.query("insert into md5 set ?",[data], function (err,rows){
if(err) throw err;
res.send("Value has been inserted");
})
console.log(data.firstName);
})
Run Code Online (Sandbox Code Playgroud) 我正在处理视频 HTML 标签,我想在新标签打开时暂停音频。请帮助解决这个问题。
<video autoplay onplay="clickplayer()" id="player" onended="endplayer()" fullscreen="true" controls onvolumechange="myFunction()" ontimeupdate="document.getElementById('tracktime').innerHTML = Math.floor(this.currentTime) + ' / ' + Math.floor(this.duration);">dik</video>
Run Code Online (Sandbox Code Playgroud)