Questions tagged «encoding»

15
ඔබ encodeURI / encodeURIComponent වෙනුවට ගැලවීම භාවිතා කළ යුත්තේ කවදාද?
වෙබ් සේවාදායකයකට යැවිය යුතු විමසුම් නූලක් කේතනය කිරීමේදී - ඔබ භාවිතා escape()කරන්නේ කවදාද සහ කවදාද භාවිතා කරන්නේ encodeURI()හෝ encodeURIComponent(): පැන යාම භාවිතා කරන්න: escape("% +&="); හෝ encodeURI () / encodeURIComponent () භාවිතා කරන්න encodeURI("http://www.google.com?var1=value1&var2=value2"); encodeURIComponent("var1=value1&var2=value2");

7
Node.js හි Base64 කේතන ක්‍රමය කරන්නේ කෙසේද?
Node.js තුළ තවම පදනම් 64 කේතන ක්‍රමයක් තිබේද? මම මේ අහන්න හේතුව බව ය final()සිට cryptoහැකි එකම ප්රතිදාන hex, ද්විමය හෝ ascii දත්ත. උදාහරණයක් වශයෙන්: var cipher = crypto.createCipheriv('des-ede3-cbc', encryption_key, iv); var ciph = cipher.update(plaintext, 'utf8', 'hex'); ciph += cipher.final('hex'); var decipher = crypto.createDecipheriv('des-ede3-cbc', encryption_key, iv); var txt = decipher.update(ciph, …
886 node.js  encoding  base64 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.