13.07.2015 Views

ДИПЛОМНА РАБОТА - Св. Климент Охридски

ДИПЛОМНА РАБОТА - Св. Климент Охридски

ДИПЛОМНА РАБОТА - Св. Климент Охридски

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Софийски Университет "<strong>Св</strong>. <strong>Климент</strong> <strong>Охридски</strong>" , Факултет по Математика и ИнформатикаМагистърска програма : З И К С Мget{return this.indentity;}}public bool IsInRole(string role){return role == this.role;}private string GetUserRole(){XmlTextReader xmlReader = new XmlTextReader("Users.xml");xmlReader.WhitespaceHandling = WhitespaceHandling.None;while (xmlReader.Read()){if (xmlReader["name"] == this.indentity.Name)return xmlReader["role"];}throw newSystem.Security.SecurityException(String.Format("Ролята на потребителя {0}не е намерена в базата данни.",this.indentity.Name));}}}using System;Приложение 4Клас AES[C#]namespace AesLib{public class Aes // Advanced Encryption Standard{public enum KeySize { Bits128, Bits192, Bits256 }; // key size, inbits, for construtorprivate int Nb;// block size in 32-bit words. Always 4 forAES. (128 bits).private int Nk; // key size in 32-bit words. 4, 6, 8. (128,192, 256 bits).private int Nr; // number of rounds. 10, 12, 14.private byte[] key;ctor.private byte[,] Sbox;// the seed key. size will be 4 * keySize from// Substitution box- 142 -Учебна година : 2007/2008; Летен семестър; Ася Огнянова Григорова; FN 22167

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!