Advertisement
Guest User

Untitled

a guest
Sep 5th, 2012
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. [34][00:25:02] vlazarenko@alluminium (~/tests) > echo -ne "\[email protected]\0mypass" | base64
  2. AG15dXNlckBteWhvc3QuY29tAG15cGFzcw==
  3. [35][00:25:22] vlazarenko@alluminium (~/tests) > bash base64.sh
  4. AG15dXNlckBteWhvc3QuY29tAG15cGFzcw==
  5. [36][00:25:25] vlazarenko@alluminium (~/tests) > cat base64.sh
  6. #!/bin/bash
  7. user=myuser
  8. pass=mypass
  9. host=myhost.com
  10.  
  11. auth=$(echo -ne "\0$user@$host\0$pass" | base64);
  12.  
  13. echo $auth
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement