.NET framework provides security features to secure code from unauthorized users. There are two types of security in .NET: