This commit is contained in:
DarkFeather 2017-12-04 20:07:01 -06:00
parent 4f96934f3f
commit 9d7dc8d2fe
6 changed files with 10 additions and 9 deletions

View File

@ -293,9 +293,12 @@ namespace AniNIX.Crypto {
}
// Otherwise add the new relation pairing.
} else {
relation.Add(workSpace[i],inputText[i]);
encKey.Append(String.Format("{0}={1} ",inputText[i],workSpace[i]));
subKey.Append(String.Format("{0}={1} ",workSpace[i],inputText[i]));
if ( workSpace[i] != inputText[i] ) {
relation.Add(workSpace[i],inputText[i]);
encKey.Append(String.Format("{0}={1} ",inputText[i],workSpace[i]));
subKey.Append(String.Format("{0}={1} ",workSpace[i],inputText[i]));
}
}
}
}

View File

@ -243,6 +243,7 @@ namespace AniNIX.Crypto {
Console.Write(ExecuteCommand.Run(String.Format("bash /usr/local/src/CryptoWorkbench/regex-lookup.bash \"{0}\" \"{1}\"",line[1].Replace("\\","\\\\").Replace("$","\\$"),line[2].Replace("\\","\\\\").Replace("$","\\$"))));
} else if (line.Length == 2) {
Console.Write(ExecuteCommand.Run(String.Format("bash /usr/local/src/CryptoWorkbench/regex-lookup.bash \"{0}\"",line[1].Replace("\\","\\\\").Replace("$","\\$"))));
Console.WriteLine();
} else {
Console.Error.WriteLine("Need at least one search term.");
}

View File

@ -1,8 +1,5 @@
INSTALLER != curl -s https://aninix.net/foundation/installer-test.bash | /bin/bash
tester:
echo ${pkgbuild}/opt
compile: clean /usr/bin/mcs CryptoWorkbench.csharp
if [ ! -d ../SharedLibraries ]; then git -C /usr/local/src clone https://aninix.net/foundation/SharedLibraries; fi
git -C /usr/local/src/SharedLibraries pull

View File

@ -3,7 +3,7 @@ pkgname=cryptoworkbench
pkgver=0.1
pkgrel=1
epoch=
pkgdesc="Simple cryptography utilities."
pkgdesc="AniNIX::CryptoWorkbench \\\\ Simple Cryptography Utility"
arch=("x86_64")
url="https://aninix.net/foundation/CryptoWorkbench"
license=('custom')

View File

@ -47,7 +47,7 @@ namespace AniNIX.Crypto {
/// <param name=line>This is the incoming line and we use it to get the cipher name</param>
public override void GetHelp() {
Console.WriteLine(String.Format("Help for the {0} cipher suite.\n{1}\n",Command(),Description()));
Console.WriteLine("shiftup -- Make all uppercase\nshiftdown -- make all lowercase\nstripspace -- strip spaces from String\nreverse -- reverse the string\nhelp -- show this helptext.");
Console.WriteLine("shiftup -- Make all uppercase\nshiftdown -- Make all lowercase\nstripspace -- strip spaces from String\nreverse -- reverse the string\nhelp -- show this helptext.");
}

View File

@ -9,6 +9,6 @@ if [ "$1" == "" ]; then
echo "Usage: $0 [search] [optional filter]"
exit 1
fi
export bashstr="$(printf "curl -s --data 'str=%s&fstr=%s&ifun=if&ccg=all&search=Search' http://www.visca.com/regexdict/" "$1" "$2")"
export bashstr="$(printf "curl -s --data 'str=%s&fstr=%s&ifun=if&ccg=all&search=Search' https://visca.com/regexdict/" "$1" "$2")"
bash -c "$bashstr" | egrep 'any matches|yourdictionary' | cut -f 2 -d '>' | cut -f 1 -d '<'