HomePhorge

Add PhabricatorHash::digestForIndex()

Description

Add PhabricatorHash::digestForIndex()

Summary: Does this seem reasonable? It's a bit more compact than digest() (6 bits / byte instead of 4 bits / byte) and 72 bits of entropy @ 12 bytes instead of 128 bits of entropy @ 32 bytes. I feel like it's important to preserve the printability, though, and this seemed like a fairly good balance of concerns.

Test Plan: unit tests

Reviewers: vrana

Reviewed By: vrana

CC: aran, yemao932

Differential Revision: https://secure.phabricator.com/D4253

Details

Provenance
epriestleyAuthored on Dec 21 2012, 5:43 AM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rP141318fd01f4: Fix a Maniphest issue where multiple saved copies of a query break the menu
Branches
Unknown
Tags
Unknown

Event Timeline