Fixes
This commit is contained in:
parent
4f96934f3f
commit
9d7dc8d2fe
@ -293,12 +293,15 @@ namespace AniNIX.Crypto {
|
||||
}
|
||||
// Otherwise add the new relation pairing.
|
||||
} else {
|
||||
|
||||
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]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// Print the keys and return true.
|
||||
subKey.Append("\nInput-to-final key:");
|
||||
Console.WriteLine(subKey.ToString());
|
||||
|
@ -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.");
|
||||
}
|
||||
|
3
Makefile
3
Makefile
@ -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
|
||||
|
2
PKGBUILD
2
PKGBUILD
@ -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')
|
||||
|
@ -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.");
|
||||
}
|
||||
|
||||
|
||||
|
@ -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 '<'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user