Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mD845-0004h1-7H for pgsql-general@arkaria.postgresql.org; Mon, 09 Aug 2021 16:23:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mD843-0001wF-9g for pgsql-general@arkaria.postgresql.org; Mon, 09 Aug 2021 16:23:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mD843-0001vs-0a for pgsql-general@lists.postgresql.org; Mon, 09 Aug 2021 16:23:47 +0000 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mD83z-0001JZ-6c for pgsql-general@lists.postgresql.org; Mon, 09 Aug 2021 16:23:46 +0000 Received: by mail-qk1-x735.google.com with SMTP id w197so17668633qkb.1 for ; Mon, 09 Aug 2021 09:23:43 -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=JRB8GqzFFMP3W7BhBjJcrL8nzIfwELXjINoMGhIoIlM=; b=tln+8UJEyTzWCJl5SPApb9vk0xByBq23gk/yYv/s4XCbXWOgIniU9Kg9tO/D447KMj CRZwvx/9y0kHb0Y46vzhd1U3MOBuxknqM6cy80yUlWveFDCDqzv0jG7Q/PTUD379u4eU 3q9doc+8EDzkobF2w77dfDEq2v/pWm+NSrKi7bG3uc6Bn26/h3w6o0l7T5rQJYa2GYlB xen7yF0lqSe4Rhmqmc2kZ7NUbjsukrXle0SD2UZTH0lZAgRVxJiXljuTVhk5WKMAuiJc Ht4uTcuPyXCFhAcyuFbVp1SEPeyMsYy1R3A1o0vgeWlH4+7UxJvdraqUUdvlVM+2Vm+9 sZUA== 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=JRB8GqzFFMP3W7BhBjJcrL8nzIfwELXjINoMGhIoIlM=; b=Zv0NWoBnVWbw8NujLELOkkOMBnPmdq9IxNwUW0pupAba/zKS6FePoSa0rfQtuaYKOB 7LlKgQKYVjoIbHxACpXAZiy36n2EpQeXTtjnBIMfFyvIGsBtst/bGwB/TJBm0ax4kz3V qAKRvmirVxiJRgyAIgATR5pnG45W+PjsAYj3Tsq40CGR9uZFwjaaXKCOjEh+amxHF6cr xoySCvJ07vJWzKibYl9kNtrxbr98zxjBOLFwTuPxfVun389VQLsjIJjkataKYKJjLD0j D52kp6hjOSGz9Tv58IuK7gxG7siAM9c4CX3MlDVNjkLqB4uZb/o8kj/oXTq5Z/7c5ggi C7uQ== X-Gm-Message-State: AOAM533ycuGu6vwxsHvXcvt9R2ewDmtT99HwAhz9CZ4hHQmFDGOZnSzk m5lnlrZJvkQrbrgb9stHguvIOhQtm+GLGQ== X-Google-Smtp-Source: ABdhPJyOMuGKJ79g+0x5BkVWKfOcDYljnXy5CrWs703+bcoHQToJT6PvyrZoH2Faj7RkweQwYl9QEQ== X-Received: by 2002:a37:a707:: with SMTP id q7mr13689391qke.275.1628526221458; Mon, 09 Aug 2021 09:23:41 -0700 (PDT) Received: from [192.168.2.100] (pool-100-8-54-81.nwrknj.fios.verizon.net. [100.8.54.81]) by smtp.gmail.com with ESMTPSA id g1sm9330311qkd.89.2021.08.09.09.23.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Aug 2021 09:23:40 -0700 (PDT) Subject: Re: JWT decoder To: Masih Tavassoli , "pgsql-general@lists.postgresql.org" References: <2138331050.291272.1628475372080.ref@mail.yahoo.com> <2138331050.291272.1628475372080@mail.yahoo.com> <1544146796.304133.1628486143594@mail.yahoo.com> From: Mladen Gogala Message-ID: <2ac9cc39-0a8f-ec84-6274-719e0a281e52@gmail.com> Date: Mon, 9 Aug 2021 12:23:40 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <1544146796.304133.1628486143594@mail.yahoo.com> Content-Type: multipart/alternative; boundary="------------0A6D3387C421BC2D41BD8AFA" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------0A6D3387C421BC2D41BD8AFA Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hmmm, Pl/Python and Pl/Perl are languages usable from within Postgres. You can write Python functions in Postgres. I apologize for not making that clear. On 8/9/21 1:15 AM, Masih Tavassoli wrote: > There are lots of decoders but I need to do it within postgresql. > > On Monday, August 9, 2021, 01:24:33 PM GMT+10, Mladen Gogala > wrote: > > > You could probably use Pl/Python. Python has base64 module and urllib > module which can deal with all URL strings I am aware of.  Pl/Perl > would probably do as well. > -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com --------------0A6D3387C421BC2D41BD8AFA Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Hmmm, Pl/Python and Pl/Perl are languages usable from within Postgres. You can write Python functions in Postgres. I apologize for not making that clear.

On 8/9/21 1:15 AM, Masih Tavassoli wrote:
There are lots of decoders but I need to do it within postgresql.

On Monday, August 9, 2021, 01:24:33 PM GMT+10, Mladen Gogala <gogala.mladen@gmail.com> wrote:


You could probably use Pl/Python. Python has base64 module and urllib module which can deal with all URL strings I am aware of.  Pl/Perl would probably do as well.

-- 
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com
--------------0A6D3387C421BC2D41BD8AFA--