﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Peter Larsson / Article Discussions / Article Discussions by Author  / Full Control Over a Randomly Generated Password / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sun, 26 May 2013 03:10:12 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Full Control Over a Randomly Generated Password</title><link>http://www.sqlservercentral.com/Forums/Topic346214-305-1.aspx</link><description>&lt;P&gt;It doesn't matter.&lt;/P&gt;&lt;P&gt;When you want non-duplicated characters from a group, the while loop exits when there are no more characters to choose from.&lt;/P&gt;&lt;P&gt;Even if you set 50 non-duplicated characters, the while loop exits after 26.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description><pubDate>Thu, 26 Apr 2007 23:48:00 GMT</pubDate><dc:creator>SwePeso</dc:creator></item><item><title>RE: Full Control Over a Randomly Generated Password</title><link>http://www.sqlservercentral.com/Forums/Topic346214-305-1.aspx</link><description>&lt;P&gt;This link below has my own procedure for generating a somewhat mnemonic password, as well as several others for generating random or semi-random passwords:&lt;A href="http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=78859"&gt;http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=78859&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It is an interesting problem, because of the conflicting requirements of security where long, random passwords are better, and the ability of a human to read, remember, and type the password.  A password like B4zI1=5UhW4K6KM'3 is probably almost impossible to crack, but how many people can remember it and type it correctly?&lt;/P&gt;&lt;P&gt;My mnemonic password procedure is an attempt at a compromise solution to generate passwords that are both secure and something that a human can remember and use.  It could be done better, but it was the best solution I could think of at the time to meet my requirements.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description><pubDate>Thu, 26 Apr 2007 08:20:00 GMT</pubDate><dc:creator>Michael Valentine Jones</dc:creator></item><item><title>RE: Full Control Over a Randomly Generated Password</title><link>http://www.sqlservercentral.com/Forums/Topic346214-305-1.aspx</link><description>&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-CA style="mso-ansi-language: EN-CA"&gt;&lt;FONT size=3&gt;&lt;FONT face="Times New Roman"&gt;Nice job, I’ll use it for sure.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-CA style="mso-ansi-language: EN-CA"&gt;&lt;FONT size=3&gt;&lt;FONT face="Times New Roman"&gt;I was using, since always, Left 4 of a new guid + Left 4 of a new guid (uppercase) &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-CA style="mso-ansi-language: EN-CA"&gt;&lt;FONT size=3&gt;&lt;FONT face="Times New Roman"&gt;Kind of… &lt;img src='images/emotions/doze.gif' height='20' width='20' border='0' title='Doze' align='absmiddle'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-CA style="mso-ansi-language: EN-CA"&gt;&lt;o:p&gt;&lt;FONT face="Times New Roman" size=3&gt; &lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-CA style="mso-ansi-language: EN-CA"&gt;&lt;FONT size=3&gt;&lt;FONT face="Times New Roman"&gt;Thanks&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description><pubDate>Wed, 25 Apr 2007 06:48:00 GMT</pubDate><dc:creator>David-389924</dc:creator></item><item><title>RE: Full Control Over a Randomly Generated Password</title><link>http://www.sqlservercentral.com/Forums/Topic346214-305-1.aspx</link><description>&lt;P&gt;This is a great idea, I am going to use it in my application. I have re-written it as a function though  (for consistency with standards of my system) by creating a view for the NEWID() function:&lt;/P&gt;&lt;P&gt;CREATE VIEW v_NewID AS SELECT NEWID() AS 'New_ID'&lt;/P&gt;&lt;P&gt;and modifying the code to use the view rather than NEWID()&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;-- Get the Number ItemsSET @i = ABS(@NumberItems) WHILE @i &amp;gt; 0 AND LEN(@Numbers) &amp;gt; 0      SELECT @v = ABS(CAST(CAST(&lt;FONT color=#ff1111&gt;New_ID&lt;/FONT&gt; AS BINARY(16)) AS BIGINT)) % LEN(@Numbers) + 1  ,    @c = SUBSTRING(@Numbers, @v, 1)  ,    @Numbers = CASE        WHEN @NumberItems &amp;lt; 0      THEN STUFF(@Numbers, @v, 1, '')    ELSE @Numbers   END  ,    @Temp = @Temp + @c  ,    @i = @i - 1 &lt;FONT color=#ff1111&gt;FROM v_NewID&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description><pubDate>Wed, 25 Apr 2007 06:20:00 GMT</pubDate><dc:creator>David le Quesne</dc:creator></item><item><title>RE: Full Control Over a Randomly Generated Password</title><link>http://www.sqlservercentral.com/Forums/Topic346214-305-1.aspx</link><description>A thought for generating passwords non-randomly: use your birthday in the Jewish (or Muslim or Persian or whatever) calendar. Therefore, if you forget it for whatever reason, you can regenerate it from a web site.</description><pubDate>Wed, 25 Apr 2007 05:55:00 GMT</pubDate><dc:creator>Stephen Hirsch</dc:creator></item><item><title>RE: Full Control Over a Randomly Generated Password</title><link>http://www.sqlservercentral.com/Forums/Topic346214-305-1.aspx</link><description>Well, its a nice solution and working prefect.</description><pubDate>Wed, 25 Apr 2007 04:45:00 GMT</pubDate><dc:creator>Liaqat Saeed-417319</dc:creator></item><item><title>RE: Full Control Over a Randomly Generated Password</title><link>http://www.sqlservercentral.com/Forums/Topic346214-305-1.aspx</link><description>&lt;P&gt;Nice solution.&lt;/P&gt;&lt;P&gt;I've been using &lt;FONT color=#008000 size=2&gt;spc_random_password&lt;FONT color=#000000&gt; of &lt;FONT color=#008000 size=2&gt;Written by Narayana Vyas Kondreddi &lt;A href="http://vyaskn.tripod.com/"&gt;http://vyaskn.tripod.com&lt;/A&gt; &lt;FONT color=#000000&gt; (&lt;A href="http://vyaskn.tripod.com/code/password.txt" target=_new name=randp&gt;&lt;FONT face=verdana color=#0000ff size=2&gt;Stored procedure to generate a simple or complex random password&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=verdana color=#0000ff size=2&gt;&amp;nbsp&lt;img src='images/emotions/wink.gif' height='20' width='20' border='0' title='Wink' align='absmiddle'&gt;&lt;/FONT&gt;from almost when it was published (2001).&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description><pubDate>Wed, 25 Apr 2007 02:48:00 GMT</pubDate><dc:creator>ALZDBA</dc:creator></item><item><title>RE: Full Control Over a Randomly Generated Password</title><link>http://www.sqlservercentral.com/Forums/Topic346214-305-1.aspx</link><description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I always think that when ever i find some time spare than i will write this one.But u did and did in a nice way&lt;/P&gt;</description><pubDate>Wed, 25 Apr 2007 01:00:00 GMT</pubDate><dc:creator>adrshen</dc:creator></item><item><title>RE: Full Control Over a Randomly Generated Password</title><link>http://www.sqlservercentral.com/Forums/Topic346214-305-1.aspx</link><description>&lt;P&gt;Very good!&lt;/P&gt;&lt;P&gt;One problem though.  Your code to limit the password length does not work if I pass negative numbers.  When the specs are negative then they can't be more negative ten the number of items in the list.  You can't call for more than 26 non-duplicated upper case letters as there are &lt;STRONG&gt;only&lt;/STRONG&gt; 26 of them.&lt;/P&gt;</description><pubDate>Tue, 24 Apr 2007 22:54:00 GMT</pubDate><dc:creator>Charles Kincaid</dc:creator></item><item><title>Full Control Over a Randomly Generated Password</title><link>http://www.sqlservercentral.com/Forums/Topic346214-305-1.aspx</link><description>Comments posted here are about the content posted at &lt;A HREF="http://www.sqlservercentral.com/columnists/plarsson/2878.asp"&gt;http://www.sqlservercentral.com/columnists/plarsson/2878.asp&lt;/A&gt;</description><pubDate>Tue, 20 Feb 2007 17:41:00 GMT</pubDate><dc:creator>SwePeso</dc:creator></item></channel></rss>