Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defun base64 (&optional b e)
- "base64 encode/decode"
- (interactive "r")
- (shell-command-on-region b e "ruby -rbase64 -e 's = $stdin.gets; print Base64.send(/^[A-Za-z0-9\\+\\/=]+$/ =~ s ? :decode64 : :encode64, s).split($/).join'" nil t))
Add Comment
Please, Sign In to add comment