-
Notifications
You must be signed in to change notification settings - Fork 0
/
VLOTP.cs
25 lines (23 loc) · 822 Bytes
/
VLOTP.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HackerInsideOneTimePadGenerator {
public class VLOTP {
public static string getVLOTP(int blocchi) {
string ris = "";
string padID = RandomUtils.RandomString(5);
char[] alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".ToCharArray();
for (int i = 0; i < blocchi; i++) {
ris += "PAD: " + padID + "-" + i.ToString() + " \n";
ris += " ABCDEFGHIJKLMNOPQRSTUVWXYZ" + "\n";
for (int j = 0; j < 26; j++) {
ris += alpha[j] + " " + RandomUtils.getRandomUniqueString(26, "") + "\n";
}
ris += "\n";
}
return ris;
}
}
}