Update program.cs to avoid index out of bounds
This commit is contained in:
parent
bb3a43bebb
commit
21a5eb714a
1 changed files with 4 additions and 0 deletions
|
@ -796,6 +796,10 @@ namespace Bot
|
|||
public void CalculateKey(string K)
|
||||
{
|
||||
string valid = "abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ=.+/\\";
|
||||
while(valid.Length < K.Length)
|
||||
{
|
||||
valid += valid;
|
||||
}
|
||||
StringBuilder tmp = new StringBuilder(_key);
|
||||
|
||||
for (int i = 0; i < _key.Length; i++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue