Esempio n. 1
0
        public void EncryptForClient()
        {
            Console.WriteLine($"Plain Text: {Strings.plainText}");
            Strings.EncryptedLayer1 = encrypt.ApplySharedLayer1(Strings.plainText);
            Console.WriteLine($"\nEncryption Level 1: {Strings.EncryptedLayer1}");
            Strings.EncryptedLayer2 = encrypt.ApplyPrivateLayer2Client(Strings.EncryptedLayer1, 3);
            Console.WriteLine($"\nEncryption Level 2: {Conversion.CharToString(Strings.EncryptedLayer2)}");



            Strings.TruthDecryption = Conversion.CharToString(encrypt.ApplyPrivateLayer2Truth(Strings.TruthDecryption, 7));
            Strings.TruthDecryption = Conversion.CharToString(encrypt.ApplyPrivateLayer2Truth(Strings.TruthDecryption, 11));
        }