Skip to content

Commit

Permalink
add note about PrivateBin v2 adata
Browse files Browse the repository at this point in the history
  • Loading branch information
grawity committed Nov 28, 2019
1 parent afdc394 commit c0b86b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions getpaste
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,8 @@ sub unwrap_privatebin_v2 {
my $ikey = decode_privatebin_base58($passwd);
my $dkey = pbkdf2($ikey, $salt, $iter, "SHA256", $ks);

# note that this relies on the encoder producing the most compact output
# (or more precisely, behaving like JSON.stringify() in JavaScript)
my $hdr = encode_json($data->{adata});
my $tag = substr($ct, -$ts, $ts, "");

Expand Down

0 comments on commit c0b86b7

Please sign in to comment.