GioTiN Posted December 15, 2008 Posted December 15, 2008 (edited) Delphi Source function gen(name:string) : string;varnorm1,norm2,added,s1,f,finalserial:string;i,res:integer;beginnorm1:='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*()_+=-{}[]/?\|><~. ';norm2:='CqiHSXMkEVZeRyBKdTAFWljDIPzxpOkgYmtarQnsuUGJLNbcfhowQQQQQQQQQQZZZZZZZZZZZZZZZZZZZZZZZZZZZ';added:='HLWsCbMErpAQOXWK';for i:=1 to length(name) dobegin s1:=copy(name,i,1); res:=pos(s1,norm1); f:=f+copy(norm2,res,1);end;if length(f) > 15 thenbeginfinalserial:=f;endelsefinalserial:=f+copy(added,1,length(added)-length(f));result:=finalserial;end;Visual Basic SourceDim normal, asdf, finalw, i, s, res, f, p, rt, qwfinalnormal = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*()_+=-{}[]/?\|><~. "asdf = "CqiHSXMkEVZeRyBKdTAFWljDIPzxpOkgYmtarQnsuUGJLNbcfhowQQQQQQQQQQZZZZZZZZZZZZZZZZZZZZZZZZZZZ"finalw = "HLWsCbMErpAQOXWK"If Text1.Text <> "" ThenFor i = 1 To Len(Text1.Text)s = Mid(Text1.Text, i, 1)res = InStrRev(normal, s, Len(normal))f = f + Mid(asdf, res, 1)Next iIf Len(f) > 15 Thenqwfinal = fElseqwfinal = f + Mid(finalw, 1, Len(finalw) - Len(f))End IfText2.Text = qwfinalElseText2.Text = "Enter A Name For Generate Key"End IfKing Regards , GioTiN // Under SEH Team Edited December 15, 2008 by Teddy Rogers Please do not be so blatant about the title, thanks...
zart Posted December 22, 2008 Posted December 22, 2008 Delphi Source function gen(name:string) : string;varnorm1,norm2,added,s1,f,finalserial:string;i,res:integer;beginnorm1:='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*()_+=-{}[]/?\|><~. ';norm2:='CqiHSXMkEVZeRyBKdTAFWljDIPzxpOkgYmtarQnsuUGJLNbcfhowQQQQQQQQQQZZZZZZZZZZZZZZZZZZZZZZZZZZZ';added:='HLWsCbMErpAQOXWK';for i:=1 to length(name) dobegin s1:=copy(name,i,1); res:=pos(s1,norm1); f:=f+copy(norm2,res,1);end;if length(f) > 15 thenbeginfinalserial:=f;endelsefinalserial:=f+copy(added,1,length(added)-length(f));result:=finalserial;end;Visual Basic SourceDim normal, asdf, finalw, i, s, res, f, p, rt, qwfinalnormal = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*()_+=-{}[]/?\|><~. "asdf = "CqiHSXMkEVZeRyBKdTAFWljDIPzxpOkgYmtarQnsuUGJLNbcfhowQQQQQQQQQQZZZZZZZZZZZZZZZZZZZZZZZZZZZ"finalw = "HLWsCbMErpAQOXWK"If Text1.Text <> "" ThenFor i = 1 To Len(Text1.Text)s = Mid(Text1.Text, i, 1)res = InStrRev(normal, s, Len(normal))f = f + Mid(asdf, res, 1)Next iIf Len(f) > 15 Thenqwfinal = fElseqwfinal = f + Mid(finalw, 1, Len(finalw) - Len(f))End IfText2.Text = qwfinalElseText2.Text = "Enter A Name For Generate Key"End IfKing Regards , GioTiN // Under SEH TeamJust wondering... Did you do this yourself? Any sources used? Source code is nice - but sometimes it is better to explain how you analyzed the program... Sort of like how it was here http://www.51pojie.com/article.asp?N_ID=272 on Release Time: 2008-6-10 23:22:16....
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now