|
Author: Yaheya Quazi
Situation
Using the assembly found in this
article you will be able to easily create Random password that is
pronounceable!
In Addition you can use the assembly to return a SHA1(Salted Hash) or MD5 string of
a password.
Note: This solution only works
with dot net projects. You must use MS Dot net framework 1 or 1.1 (recommended)
Setup for Solution
Simply add (reference) the
assembly iGluon security.dll file into your VS.net project. (You can
download the assembly below) If you do not use VS.net, add the assembly to
you bin folder under your web application folder.
Solution
Once you have added the assembly
and referenced it (if you use VS.net), you simply add the name space into
your code as below
For VS.net IDE use the following
code..
Imports iGluon_security (if you
use VB.net)
Using iGluon_security (if you use C#)
For Web Metrix or other
(Notepad) use the following Code
<%@ import Namespace="iGluon_security" %> (vb.net)
<%@ using Namespace="iGluon_security" %>
[Code Block]
An example use of the assembly is below
Private Sub Page_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
Dim myobject as new igluon.security
Response.Write(myobject.Generatepassword(6))
Response.Write(myobject.Hash_password("helloworld", "md5"))
End Sub
I plan to add more password
related methods into this assembly as time permits. Once I do that I will post it into this page.
In the meantime drop me a line to say if the assembly is working
out for you. (Yaheya
Quazi)
|