Browse Source

add encrypt and decrypt stream func

pull/1/head
10sr 12 years ago
parent
commit
014c6c9866
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      bashrc

+ 10
- 0
bashrc View File

@@ -150,6 +150,16 @@ then
|| complete -o default -o nospace -F _git g
fi

encrypt-stream(){
test $# -eq 1 &&
mcrypt --key $1 2>/dev/null | base64
}

decrypt-stream(){
test $# -eq 1 &&
base64 -d | mcrypt -d --key $1 2>/dev/null
}

showinfo(){
echo "Japanese letters are 表示可能"



Loading…
Cancel
Save