mirror of
https://github.com/notwa/rc
synced 2024-11-05 08:29:02 -08:00
basic predictable text scrambler
This commit is contained in:
parent
7af4bfbc92
commit
1f519900ab
1 changed files with 8 additions and 0 deletions
8
sh/scramble
Normal file
8
sh/scramble
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
scramble() {
|
||||||
|
local eggs='s/@\(\w\)\(\w\)\(\w\)/@\3\1@\2/g'
|
||||||
|
sed \
|
||||||
|
-e 's/\b\w/&@/g' \
|
||||||
|
-e "$eggs" -e "$eggs" -e "$eggs" -e "$eggs" \
|
||||||
|
-e 's/@//g'
|
||||||
|
}
|
Loading…
Reference in a new issue