passwords

MySQL/phpMyAdmin Reset ROOT PASSWORD?

不想你离开。 提交于 2019-12-03 21:51:59
I'm having MySQL on RHEL, and phpMyAdmin interface also. I have normal MySQL user access which i remember but i forget the root password. How to SAFELY reset the MySQL root password? (I have root account on O/S) From Here: http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html Stop mysqld and restart it with the --skip-grant-tables option. This enables anyone to connect without a password and with all privileges. Because this is insecure, you might want to use --skip-grant-tables in conjunction with --skip-networking to prevent remote clients from connecting. Connect to the mysqld

Drupal 7 password hash

二次信任 提交于 2019-12-03 21:48:13
I have a bit of a dilemma here. I have a drupal 7 database table of users, with corresponding passwords. All these passwords have been naturally encrypted. My assumption is that these are MD5 hashes, but not quite. The challenge here is that, we are utilizing the same set of users in a companion website that uses similar credentials but a different technology [please don't blame me for this, I a mere pawn]. Now if I knew how Drupal goes about encrypting its passwords, maybe I could decrypt them and apply the same in my backend logic? Note that these passwords are hashed , not encrypted. The

How to transform phrases and words into MD5 hash?

隐身守侯 提交于 2019-12-03 21:41:38
Can anyone, please, explain to me how to transform a phrase like "I want to buy some milk" into MD5? I read Wikipedia article on MD5, but the explanation given there is beyond my comprehension: "MD5 processes a variable-length message into a fixed-length output of 128 bits. The input message is broken up into chunks of 512-bit blocks (sixteen 32-bit little endian integers)" "sixteen 32-bit little endian integers" is already hard for me. I checked the Wiki article on little endians and didn't understand a bit. However, the examples of some phrases and their MD5 hashes in that Wiki article are

Django password in PHP

社会主义新天地 提交于 2019-12-03 20:37:08
I have a problem, because I have a database with users and theirs passwords were secured with Django (pbkdf2). So '123' looks like this: pbkdf2_sha256$20000$MflWfLXbejfO$tNrjk42YE9ZXkg7IvXY5fikbC+H52Ipd2mf7m0azttk= Now I need to use this passwords in PHP project and I don't have any idea how to compare them. pbkdf2_sha256$20000$MflWfLXbejfO$tNrjk42YE9ZXkg7IvXY5fikbC+H52Ipd2mf7m0azttk= Let's break this down. The $ are separators: pbkdf2_sh256 means PBKDF2-SHA256, i.e. hash_pbkf2('sha256', ...) 20000 is the iteration count MflWfLXbejfO is the salt tNrjk42YE9ZXkg7IvXY5fikbC+H52Ipd2mf7m0azttk= is

Hash password in Swift application

早过忘川 提交于 2019-12-03 20:36:57
This question was migrated from Information Security Stack Exchange because it can be answered on Stack Overflow. Migrated 4 years ago . Learn more . For security purposes I will encrypt some data, including the user password in my application. My colleagues have chosen scrypt hashing algorithm, for a 64 bytes length, with a fixed seed, then converted to hex. Hashing " A12345678Z " leads to: 25fac84a1cc3a8f6706848d1016cfe7e9d3631691306dcacae68c11c7b54f0bf89e7a7fc51f7fcc19671775acb21c8d928c4c96bb66d915925de58b8b36ab251 Seed is “ HeanpyftAkWilfUd ”. On server, they are using this implementation

How to change a Linux user password from python

风流意气都作罢 提交于 2019-12-03 20:18:14
问题 I'm having problems with changing a Linux user's password from python. I've tried so many things, but I couldn't manage to solve the issue, here is the sample of things I've already tried: sudo_password is the password for sudo, sudo_command is the command I want the system to run, user is get from a List and is the user who I want to change the password for, and newpass is the pass I want to assign to 'user' user = list.get(ANCHOR) sudo_command = 'passwd' f = open("passwordusu.tmp", "w") f

What's the login for phpMyAdmin?

我与影子孤独终老i 提交于 2019-12-03 19:28:45
问题 I downloaded the most recent version of XAMPP (v.1.7.7) and decided start a database. When I opened phpMyAdmin, it alerts me there is a new version of phpMyAdmin available. I downloaded it from online, and I deleted the old version of phpMyAdmin and replaced it with the current version (v.3.5.1). I opened it up and it came up with a log-in screen. I entered in "root" without a password, but it alerts me I need one. I don't know any password nor I know any alternative log-ins. How would I log

Why is a password salt called a “salt”? [closed]

这一生的挚爱 提交于 2019-12-03 18:44:12
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . Is there a significance to the word "salt" for a password salt? 回答1: http://www.derkeiler.com/Newsgroups/comp.security.misc/2003-05/0154.html The use of the word "salt" is probably a reference to warfare in ancient times, when people would salt the wells or farmland to make it less hospitable. The Romans are

Clearing memory securely and reallocations

烈酒焚心 提交于 2019-12-03 18:38:05
问题 Following the discussion here, if you want to have a secure class for storing sensitive information (e.g passwords) on memory, you have to: memset/clear the memory before freeing it reallocations must also follow the same rule - instead of using realloc, use malloc to create a new memory region, copy the old to the new, and then memset/clear the old memory before freeing it finally So this sounds good, and I created a test class to see if this works. So I made a simple test case where I keep

What function to use to hash passwords in MySQL?

ε祈祈猫儿з 提交于 2019-12-03 18:05:50
问题 I have a user table in my mysql database that has a password column. Currently, I use the MD5 algorithm to hash the users' password for storage in the database. Now I like to think that I am a security conscience person. I noticed while reading the MySQL docs that they don't recommend MD5 or the SHA/SHA1 hashing methods, but don't offer an alternative. What would be the best way to hash my passwords in MySQL? A function that is natively supported in both PHP and MySQL would be ideal and