Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f7skh-0006Ho-GH for pgsql-admin@arkaria.postgresql.org; Mon, 16 Apr 2018 01:16:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f7skf-0002TX-BY for pgsql-admin@arkaria.postgresql.org; Mon, 16 Apr 2018 01:16:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f7skf-0002TO-1v for pgsql-admin@lists.postgresql.org; Mon, 16 Apr 2018 01:16:13 +0000 Received: from mail-ot0-x232.google.com ([2607:f8b0:4003:c0f::232]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f7skb-00067L-Sd for pgsql-admin@lists.postgresql.org; Mon, 16 Apr 2018 01:16:12 +0000 Received: by mail-ot0-x232.google.com with SMTP id w2-v6so4669422otj.12 for ; Sun, 15 Apr 2018 18:16:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=ALtSqTcJGOcpesSlVNTEjzxd+ClYHT128QeIgUDpPAw=; b=gCAaZQj6k0IVKqZRHq6nRUW2ffuxitkbw7ejWK+T1d+mbUuJ/pis6f0rNNa8pXDRM+ F6CyNlheO+jEq1iU6GvcwRUDOP7mHSqSmBT3Mu575lssciDOjLJ+Fa0uXE16DhSNNtbM vpaVKDuxmRy/RE1XXk6OdUX03hct2G4qkidQ7n7qlfJgDIk6GyKp79LDdfEbp32DYwyi yaetIc0ARyYI/1y6ghEWSARNji2et/8ca8p5t9kHqQIQgUwYgYJsCRzVFa/vmIGZ0lko T/kdO/nekbnDv7OS4JivSMemoZIUX1T/jeJbGOSR0HafMpWkE9i5oap5rL76ix2GHH50 yqVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=ALtSqTcJGOcpesSlVNTEjzxd+ClYHT128QeIgUDpPAw=; b=HWwWE+eB7OXmsU8iFyB5WZEmbIBzQQe/x2jWHGMFnUlYpEosD5ioaHsnSAtSxbG2qQ mZDgS93YnQOL4ojQdylAP/6QromnvvrzXazNUlG+btxgC9Jd4BOfs62YyGtxHZlpkY4K yX9g7ffPA/T2zWyNxD6OYHAbIEZkZ0eOjOOZlXtrZCOBpG6p/6f4vVcWmAbtYQ+9aD8n zcetFhzbMwrhSPj6kwYmnHNO4OfEsAJfIdVwnq0R9zO8EeWqUlJ3XJK+8Rkf54B8IeOk x5s6Psai3JgL8PnHCIyJsjhEvTkdS6uuZoNb0goFLodJRkc0PJXYD/fbpsIw0Kz7kUom tHTg== X-Gm-Message-State: ALQs6tB+4phPObDQspCqNdENMxEfdGrPqASacP8MNeyvmSDOjAIYn8WX qmIGWR6iICnR2+miUljewwZNvA== X-Google-Smtp-Source: AIpwx4/XwmsQjRtHDdV3aQltTOUTf+Ye6uHO28yFWj7ZpGSeB81vrf32YcEvfmneChc4rZGZQeXUTg== X-Received: by 2002:a9d:5786:: with SMTP id q6-v6mr8620963oth.229.1523841366300; Sun, 15 Apr 2018 18:16:06 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id o18-v6sm7582552oto.64.2018.04.15.18.16.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Apr 2018 18:16:05 -0700 (PDT) Subject: Re: Password encryption To: pgsql-admin@lists.postgresql.org References: From: Ron Message-ID: Date: Sun, 15 Apr 2018 20:16:04 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------6930B5AAF1DC4BAB84B3E382" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------6930B5AAF1DC4BAB84B3E382 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 04/15/2018 07:22 PM, Azimuddin Mohammed wrote: > Hello, > Is there a way I can encrypt the default password column of db user > password. I know by default the password is encrypted as md5, can we > encrypt that of shadow column for password? MD5 is a *one-way hash*, not an encryption scheme.  Thus, the password cannot be reverse-computed from the MD5 hash value.  So, you're (kinda) safe, although an attacker could determine the password through brute-force calculation of hashes. -- Angular momentum makes the world go 'round. --------------6930B5AAF1DC4BAB84B3E382 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 04/15/2018 07:22 PM, Azimuddin Mohammed wrote:
Hello,
Is there a way I can encrypt the default password column of db user password. I know by default the password is encrypted as md5, can we encrypt that of shadow column for password?

MD5 is a one-way hash, not an encryption scheme.  Thus, the password cannot be reverse-computed from the MD5 hash value.  So, you're (kinda) safe, although an attacker could determine the password through brute-force calculation of hashes.


--
Angular momentum makes the world go 'round.
--------------6930B5AAF1DC4BAB84B3E382--