Why is the WPA2-PSK key length limited to 63 characters?

The PSK is derived from the passphrase using PBKDF2 key derivation function with SHA1 as the pseudo random function. The passphrase is an 8-63 character ASCII encoded string. PSK = PBKDF2(PassPhrase, ssid, ssidLength, 4096, 256) The PSK is 32 bytes (256 bits), often displayed as 64 hex characters. According to the 802.11i specification: A pass-phrase … Read more

OpenSSH using private key on Windows (“Unprotected private key file” error)

You can use icacls in Windows instead of chmod to adjust file permission. To give the current user read permission and remove everything else (Which will allow openssh to work), this works nicely: Command Prompt: icacls .\private.key /inheritance:r icacls .\private.key /grant:r “%username%”:”(R)” In PowerShell, you can get icacls to work by wrapping the command in … Read more

‘MyhomePage({Key key, this.title}) : super(key: key);’ in Flutter – what would be a clear explanation with an example?

The code is the constructor of the MyHomepage widget. {Key key, this.title} It declares two optional named parameters (optional named because of {}) where the first is of name key with type Key the second is of name title with the type of the field this.title and automatically initializes this.title with the passed value. This … Read more

MongoDB – Multiple $or operations

Mongo 2.0 added an $and operator, so you can do a query like this: db.things.find({$and: [{$or : [{‘a’:1},{‘b’:2}]},{$or : [{‘a’:2},{‘b’:3}]}] }) http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%24and