to generate a gpg key, run the following:
gpg --gen-key
when that completes, run
gpg --list-keys
for instance, to get the key information from my pub key, I
run:
$ gpg --list-keys cjcollier@mysql.com
pub 1024D/6CC27EA8 2001-04-27
uid C.J. Collier
uid C.J. Collier
uid C.J. Collier
uid [jpeg image of size 9187]
After you generate it, you should publish your public key:
gpg --keyserver pgp.mit.edu --send-keys
mine looks like this:
$ gpg --keyserver pgp.mit.edu --send-keys 6CC27EA8
gpg: sending key 6CC27EA8 to hkp server pgp.mit.edu
You can get my GnuPG key with the following command:
$ gpg --keyserver pgp.mit.edu --recv-keys 6CC27EA8
Let me know what your ID is when you complete this. When I see
you
next, I'll sign your …
So, Markus Popp’s recent blog entry about trying to give a user permissions to all databases except one got me thinking.
MySQL has grown immensely, and like many products, new features are compatible with old features. . . somewhat.
Review/baseline:
For current versions of MySQL, permissions are granted and
revoked by the GRANT
and REVOKE
commands. In older versions, administrators had to muck with the
access control tables by hand, and then FLUSH
PRIVILEGES
to enable the new access controls.
The blog entry got me thinking. Currently, if you want to remove
all rights from a user, including the ability to login, you have
to REVOKE
privileges and then DELETE
from the mysql.user table. And then, of course, FLUSH
PRIVILEGES
because you manually …
With some inspiration from Ben Ramsey i created a little demo for using my md5 database during the signup process on a website.
This example demonstrates the use of the MD5 database at http://md5.rednoize.com and AJAX to check password strength during signup on a website. After supplying a username and a password, a md5 hash of the password is generated using Paul Johnston's md5 javascript library.
The hash of the password (not the password itself) is then sent to http://md5.rednoize.com. If the website returns a result for the given password (hence the hash password combination is stored in the md5 database) it can be regarded as …
[Read more]