2
* Drizzle Client & Protocol Library
4
* Copyright (C) 2008 Eric Day (eday@oddments.org)
7
* Use and distribution licensed under the BSD license. See
8
* the COPYING file in this directory for full text.
16
#include <libdrizzle/drizzle_client.h>
18
#define BUFFER_CHUNK 8192
20
int main(int argc, char *argv[])
22
char hashed_password[DRIZZLE_MYSQL_PASSWORD_HASH];
26
printf("Usage: %s <password to hash>\n", argv[0]);
30
drizzle_mysql_password_hash(hashed_password, argv[1], strlen(argv[1]));
32
printf("%s\n", hashed_password);