FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
processing-docs/generate/mailinglist-decrypt.php at macos · processing/processing-docs · GitHub
processing
processing-docs
Repository navigation
Code
Issues
3
(3)
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
processing-docs
/
generate
/
mailinglist-decrypt.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
33 lines (24 loc) · 790 Bytes
Breadcrumbs
processing-docs
/
generate
/
mailinglist-decrypt.php
Copy path
File metadata and controls
33 lines (24 loc) · 790 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
// ubsubscribe functionality. saves to a flat file.
// built by Jamie Kosoy (@jkosoy, jamie@arbitrary.io)
require_once
(
'
../config.php
'
);
require_once
(
BASEDIR
.
'
/subscribe/AES.class.php
'
);
// gets the aes key.
$
aesKeyFilePath
=
BASEDIR
.
'
../mailinglist/aes-key.txt
'
;
$
fh
=
fopen
(
$
aesKeyFilePath
,
'
r
'
);
$
aesKey
=
fread
(
$
fh
,
filesize
(
$
aesKeyFilePath
));
fclose
(
$
fh
);
// set the aes block size.
$
aesBlockSize
=
256
;
// where the mailing list text file is located.
$
listFilePath
=
BASEDIR
.
'
../mailinglist/list.txt
'
;
$
aes
=
new
AES
(
''
,
$
aesKey
,
$
aesBlockSize
);
$
fh
=
fopen
(
$
listFilePath
,
'
r
'
);
while
((
$
line
=
fgets
(
$
fh
)) !==
false
) {
$
aes
->
setData
(
$
line
);
$
email
=
$
aes
->
decrypt
();
error_log
(
$
email
);
echo
"
$
email
<br />
"
;
}
fclose
(
$
fh
);
?>
Back
|
FazBrowse Home
|
New Git URL