| « Prev | Page 1 | Page 2 | Next » |
Re: Securely Random Strings
2012-04-12 16:26
•
by
Zunetang
(unregistered)
|
You're just a pissing fag! You fu... Oh, wait... My apologies. |
Re: Securely Random Strings
2012-04-12 16:32
•
by
Peter
(unregistered)
|
God, no. Those were awful books. |
|
This is bound to lead to Ovaltine.
|
|
http://images.smh.com.au/2012/04/12/3211657/hacker-353-200x0.jpg
Turns out she was Australian after all and likes nerds! |
Re: Securely Random Strings
2012-04-12 19:12
•
by
lumberjack
(unregistered)
|
The real WTF is the Thomas Covenant reference. |
Re: Securely Random Strings
2012-04-12 19:51
•
by
aw
(unregistered)
|
minNumNonAlphanumChars Captcha: commoveo - as we get bald we start to use hairstyles called commeoveos |
|
Unclean! Unclean!
|
Re: Securely Random Strings
2012-04-12 19:59
•
by
aw
(unregistered)
|
I'll get you started....
|
Re: Securely Random Strings
2012-04-12 20:01
•
by
e54yadsrhxfb
(unregistered)
|
bcdef too for the heaxadecimally inclined |
Re: Securely Random Strings
2012-04-12 20:31
•
by
Odin
(unregistered)
|
It asks for Yahtzee? |
Re: Securely Random Strings
2012-04-12 21:46
•
by
Cheong
(unregistered)
|
Use " and" as your password then. |
Re: Securely Random Strings
2012-04-12 23:56
•
by
default_ex
(unregistered)
|
If you've never used .Net, it's actually not bad with how .Net's "using" statements work. The only time you really have to type out the full namespace hierarchy is when there is a naming conflict with another namespace you've pulled in with a "using" statement. It's a really nice feature if you make heavy use of the IDE, a lot of the VS IDE is sensitive to what namespaces you bring in with "using" statements. |
Re: Securely Random Strings
2012-04-13 00:23
•
by
Lefty
(unregistered)
|
|
Switch to EBCDIC.
|
and he still didn't think of md5.... |
Re: Securely Random Strings
2012-04-13 02:06
•
by
L.
(unregistered)
|
I have only one word for this kind of WTF: Microsoft |
Re: Securely Random Strings
2012-04-13 02:17
•
by
L.
(unregistered)
|
I think you can do that in 5 minutes with a perl lib .. they have libs for everything mad and language-y |
|
// ...
// several lines of code to be decently paid // ... return "hunter2"; |
|
For those who didn't get it, here's how you would code this in a secure way:
protected String getRanString() { String uncleanRandomString = System.Web.Security.Membership.GeneratePassword(10, 0); uncleanRandomString = uncleanRandomString.Replace("!", "a"); uncleanRandomString = uncleanRandomString.Replace("@", "2"); uncleanRandomString = uncleanRandomString.Replace("#", "c"); uncleanRandomString = uncleanRandomString.Replace("$", "4"); uncleanRandomString = uncleanRandomString.Replace("%", "3"); uncleanRandomString = uncleanRandomString.Replace("^", "i"); uncleanRandomString = uncleanRandomString.Replace("&", "a"); uncleanRandomString = uncleanRandomString.Replace("*", "9"); uncleanRandomString = uncleanRandomString.Replace("(", "g"); uncleanRandomString = uncleanRandomString.Replace(")", "s"); uncleanRandomString = uncleanRandomString.Replace("_", "h"); uncleanRandomString = uncleanRandomString.Replace("-", "a"); uncleanRandomString = uncleanRandomString.Replace("+", "2"); uncleanRandomString = uncleanRandomString.Replace("=", "q"); uncleanRandomString = uncleanRandomString.Replace("[", "w"); uncleanRandomString = uncleanRandomString.Replace("{", "t"); uncleanRandomString = uncleanRandomString.Replace("]", "r"); uncleanRandomString = uncleanRandomString.Replace("}", "f"); uncleanRandomString = uncleanRandomString.Replace(";", "8"); uncleanRandomString = uncleanRandomString.Replace(":", "z"); uncleanRandomString = uncleanRandomString.Replace("<", "x"); uncleanRandomString = uncleanRandomString.Replace(">", "0"); uncleanRandomString = uncleanRandomString.Replace("|", "v"); uncleanRandomString = uncleanRandomString.Replace(".", "b"); uncleanRandomString = uncleanRandomString.Replace("/", "y"); uncleanRandomString = uncleanRandomString.Replace("?", "t"); return uncleanRandomString; } |
Re: Securely Random Strings
2012-04-13 08:22
•
by
PedanticCurmudgeon
|
You read more than one of them? Why? |
|
It doesn't seem 'Too bad' to me.
So System.Web.Security.Membership.GeneratePassword(10, 0); creates a random alpha-numeric string which includes the extra characters. But the programmer doesn't want any of those characters in password strings so they're performing a manual replace on each of the special characters. |
Re: Securely Random Strings
2012-04-13 09:52
•
by
Mainframe Web Dev
(unregistered)
|
Hooray! |
Not a single 1 of those is a number. |
Re: Securely Random Strings
2012-04-13 10:08
•
by
jmacpherson
(unregistered)
|
|
All are the letters are numerals for base 36.
|
Nobody in their right mind uses base36. A keyboard isn't used in a base36 context. It CAN be, but generally is not. So when we refer to the symbols on a keyboard, and put a requirement refering to numbers between 2 keys, and nobody has specified that we are using base36, then base 10 is assumed, and the symbols that are not arabic numbers are considered 'letters' and not 'numbers'. So no, nobody specified base36 before hand, so no, there are no numbers between 'a' and 'z' on a qwerty or dvorak keyboard. |
|
You berated the programmer for not using md5, but he did!
uncleanRandomString = uncleanRandomString.Replace(")", "m"); uncleanRandomString = uncleanRandomString.Replace("_", "d"); uncleanRandomString = uncleanRandomString.Replace("-", "5"); |
Re: Securely Random Strings
2012-04-15 00:23
•
by
Gibbon1
(unregistered)
|
I'm going to assume he thought like other people that the second term would squash the non-alpha numeric characters. When it obvious didn't, he slapped in a fix and got on with his life. Since thee are no important effects outside the function itself, it's not very wtf. Big WTF is something that causes difficult to explain side effects, or subtle failures far from the offense itself. |
Re: Securely Random Strings
2012-04-16 05:02
•
by
I see what you did, there
(unregistered)
|
Hint: Ipsum Lorem, Pagina III. |
|
"Apparently, this developer was too proud for base 64 encoding"
I don't get it. How would base64 encoding help with random strings? With MD5 I could do MD5(RAND()) and get a reasonably random string of mostly numbers and couple letter (0-F). But how can one use Base 64 when generating a random string? |
Re: Securely Random Strings
2012-04-17 07:32
•
by
eXlit
(unregistered)
|
|
umm, because it won't work on mac?
|
|
Is there a formular for determing the decreased entropy?
like cat /dev/absolutelyrandom | randomdetection 100% (after some time) cat /dev/absolutelyrandom | replacing_certain_strings_with_absolutelynon_random | randomfilter 30% ? Dunno how the Laplace Distribution plays in there, but some symbols have 1:1 conversion and are a crib enabler. Maybe one could build a functioning string (bash shebang?) out of the 1:1 fixed translation conversion symbols. And yes, the use of cat might be a deadvisable one, but i like pipes. |
| « Prev | Page 1 | Page 2 | Next » |