Problem with cloaking
-
woodencross
- Posts: 14
- Joined: Sat Nov 27, 2004 11:28 am
- Contact:
Problem with cloaking
Just reinstalled ircd on another shell, but now it says:
* Loading IRCd configuration ..
[error] unrealircd.conf:212: set::cloak-keys: (key 2) Keys should be mixed a-zA-Z0-9, like "a2JO6fh3Q6w4oN3s7"
[error] unrealircd.conf:213: set::cloak-keys: (key 3) Keys should be mixed a-zA-Z0-9, like "a2JO6fh3Q6w4oN3s7"
[error] 2 errors encountered
[error] IRCd configuration failed to pass testing
Possible error encountered (IRCd seemily not started)
but I typed in 3 different keys - what to do?
* Loading IRCd configuration ..
[error] unrealircd.conf:212: set::cloak-keys: (key 2) Keys should be mixed a-zA-Z0-9, like "a2JO6fh3Q6w4oN3s7"
[error] unrealircd.conf:213: set::cloak-keys: (key 3) Keys should be mixed a-zA-Z0-9, like "a2JO6fh3Q6w4oN3s7"
[error] 2 errors encountered
[error] IRCd configuration failed to pass testing
Possible error encountered (IRCd seemily not started)
but I typed in 3 different keys - what to do?
-
woodencross
- Posts: 14
- Joined: Sat Nov 27, 2004 11:28 am
- Contact:
-
woodencross
- Posts: 14
- Joined: Sat Nov 27, 2004 11:28 am
- Contact:
-
woodencross
- Posts: 14
- Joined: Sat Nov 27, 2004 11:28 am
- Contact:
There's a great way to get a string of very decent length with a suitable mixture of letters, digits, and even symbols!
It's called ./unreal mkpasswd
. I recommend using sha1 on 3 keywords of your choice through unreal's passcrypter. Then you get 3 salted sha1 hashes that make wonderful cloak keys!
@syzop: Is it possible for this method be referenced in the FAQ?
It's called ./unreal mkpasswd
@syzop: Is it possible for this method be referenced in the FAQ?
There's a feature request in the bugtracker, #1924 (marked private) " cloak key generator, like './unreal gen-cloak' "... granted, it's been there since July, I think it's a better idea to code that.@syzop: Is it possible for this method be referenced in the FAQ
Still, the method you described isn't too bad.. If you ignore the 2 predictable '$'s in the strings you get pretty much securely randomized output I think.
I could put it in the FAQ but I think people would be a tad confused, and most people probably won't read it anyway ;).
-
Stealth
- Head of Support
- Posts: 2085
- Joined: Tue Jun 15, 2004 8:50 pm
- Location: Chino Hills, CA, US
- Contact:
I have made a simple VBScript that can generate completely random cloak keys.
Instructions:
1. Copy the following into Notepad.
2. Name it cloak.vbs
3. Find and execute it.
NOTE: VBScripts can only be executed on Windows, but the output can be easily copied to a shell.
-- moderator: do not use, see replies below! --
Instructions:
1. Copy the following into Notepad.
2. Name it cloak.vbs
3. Find and execute it.
NOTE: VBScripts can only be executed on Windows, but the output can be easily copied to a shell.
-- moderator: do not use, see replies below! --
Code: Select all
Randomize
Dim nType
Dim nBox
Dim nRes
Dim nState
nRes = ""
nState = ""
Do While nState = ""
For nBox = 0 To 2
For nPos = 1 To 10
nType = Int((3 - 1 + 1) * Rnd + 1)
If nType = 1 Then
nRes = nRes & Chr(Int((57 - 48 + 1) * Rnd + 48))
ElseIf nType = 2 Then
nRes = nRes & Chr(Int((90 - 65 + 1) * Rnd + 65))
Else
nRes = nRes & Chr(Int((122 - 97 + 1) * Rnd + 97))
End If
Next
nRes = nRes & "; "
Next
nState = InputBox("These are your randomly genertated cloak keys." & vbCrLf & "If you like them, click OK, otherwise, click Cancel.", "Cloak key generator", nRes)
nRes = ""
Loop-
codemastr
- Former UnrealIRCd head coder
- Posts: 811
- Joined: Sat Mar 06, 2004 8:47 pm
- Location: United States
- Contact:
When you're dealing with stuff for encryption, saying things like "completely random" is a bad idea. There is no such thing as "completely random" in the computer world. Even random number generators that are based on such things as heat emitted by a CPU have shown to be less than "completely random." The VB PRNG is far from "completely random."Stealth wrote:I have made a simple VBScript that can generate completely random cloak keys.
-- codemastr
I would really NOT suggest using that, cloak keys should really be very unpredictable and some simply RND() INT() stuff cannot meet these requirements... yes, they would be random, but not unpredictable.
The 'Randomize' thing isn't as random as you might suspect (not at all, it uses the timer for the seed). It is not unpractical at all to retrieve the cloak keys then.
If someone really can't wait for this feature, I suggest using aquanights idea (and ofcourse a long password string).
*edit* did I say AngryWolf? Poor aquanight ;) */edit*
The 'Randomize' thing isn't as random as you might suspect (not at all, it uses the timer for the seed). It is not unpractical at all to retrieve the cloak keys then.
If someone really can't wait for this feature, I suggest using aquanights idea (and ofcourse a long password string).
*edit* did I say AngryWolf? Poor aquanight ;) */edit*
Last edited by Syzop on Mon Dec 27, 2004 11:46 pm, edited 3 times in total.
Let's not forget that not all systems can run VBScript! Anyway, I'm willing to bet there is some VBScript implementation of a generator that's more random, but... blah.codemastr wrote:When you're dealing with stuff for encryption, saying things like "completely random" is a bad idea. There is no such thing as "completely random" in the computer world. Even random number generators that are based on such things as heat emitted by a CPU have shown to be less than "completely random." The VB PRNG is far from "completely random."Stealth wrote:I have made a simple VBScript that can generate completely random cloak keys.
...huh?!Syzop wrote:If someone really can't wait for this feature, I suggest using AngryWolfs idea (and ofcourse a long password string).