🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #309817

Re: tłumaczenie algorytmu z php na c++

#309817
From: Queequeg
Date: Wed, 30 Jan 2019 12:35
12 lines
1399 bytes
Maciek <moblaza@gmail.com> wrote:

> sha1(date('Ymd').sha1($_POST['passwd']));

1. Bierzesz hasło przesłane przez użytkownika
2. Liczysz mu sumę sha1: https://www.openssl.org/docs/man1.1.0/crypto/SHA1.html
3. Bierzesz aktualną datę w formacie <rok><miesiąc><dzień> (strftime)
4. Sklejasz tę datę z sumą wyliczoną w punkcie 2
5. Ponownie liczysz sumę sha1 dla tej sklejonej całości z punktu 4

-- 
https://www.youtube.com/watch?v=9lSzL1DqQn0
Technical Details
Message-ID: <56626736-1d1c-4480-8fea-8bd140ff4d07@trust.no1>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.chmurka.net!.POSTED.pi.v.chmurka.net!not-for-mail
References: <42d227cc-4c45-4c33-9aaa-a1aa7f18da60@googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.chmurka.net!.POSTED.pi.v.chmurka.net!not-for-mail
From: queequeg@trust.no1 (Queequeg)
Newsgroups: pl.comp.lang.c
Subject: Re: tłumaczenie algorytmu z php na c++
Date: Wed, 30 Jan 2019 12:35:42 +0000 (UTC)
Organization: news.chmurka.net
Message-ID: <56626736-1d1c-4480-8fea-8bd140ff4d07@trust.no1>
References: <42d227cc-4c45-4c33-9aaa-a1aa7f18da60@googlegroups.com>
NNTP-Posting-Host: pi.v.chmurka.net
Mime-Version: 1.0
Injection-Date: Wed, 30 Jan 2019 12:35:42 +0000 (UTC)
Injection-Info: news.chmurka.net; posting-account="gof"; posting-host="pi.v.chmurka.net:172.24.44.20"; logging-data="11839"; mail-complaints-to="abuse-news.(at).chmurka.net"
User-Agent: tin/2.4.2-20171224 ("Lochhead") (UNIX) (Linux/4.4.50-v7+ (armv7l))
Cancel-Lock: sha1:EK1J8eHIkdbIcYRhetTKfrXgSRA=
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit