SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var crypto = require('crypto');
  2.  
  3. //md5
  4. crypto.createHash('md5').update(data).digest("hex");
  5.  
  6. //urlencode
  7. encodeURIComponent('?x=шеллы')
  8.  
  9. //base64
  10. *encode
  11.   Buffer.from("Hello World").toString('base64')
  12. *decode
  13.   Buffer.from("SGVsbG8gV29ybGQ=", 'base64').toString('ascii')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top