Appendix B: Contents of SecurityLibrary.vb


This appendix shows you how to use the contents of SecurityLibrary.vb and RoleBasedSecurity.vb, the library of functions you built in the early chapters of this book.

Hash Digests

The following code creates a SHA-1 hash of the string strSource, and it assigns the result to the string strMyHash:

strMyHash = Hash.CreateHash(strSource)




Security for Microsoft Visual Basic  .NET
Security for Microsoft Visual Basic .NET
ISBN: 735619190
EAN: N/A
Year: 2003
Pages: 168

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net