Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();
            List <long> a = new List <long>();

            a.Add(1234);
            Tools.generateAESModule(a);
            aes = Tools.getAESModule();

            //creating handler for Drag and Drop
            queryhandler = new QueryContinueDragEventHandler(DragSourceQueryContinueDrag);
            Open();
        }
Exemplo n.º 2
0
        private string encrypt(string pw)
        {
            AESCrypt aesc = new AESCrypt(Tools.generateKey(pw.GetHashCode()), Tools.generateIV(pw.GetHashCode()));

            return(aesc.EncryptString(pw));
        }
Exemplo n.º 3
0
 public static void generateAESModule(List <long> answer)
 {
     generalAES = new AESCrypt(generateKey(answer[0]), generateIV((answer.LongCount() + answer[0]) ^ 10293847));
 }