Closed iCyberon closed 7 years ago
I'd be fine with both definiting it once, and with setting it on each call. Whatever is the easiest :)
Fixed by https://github.com/iCyberon/pg_hashids/commit/98d0311755fdb29067dc21fe56c03fc9ab054cda
SELECT hash_encode(3);
SELECT hash_encode(3, 'salt');
SELECT hash_encode(3, 'salt', 4);
SELECT hash_decode('mw2k', 'salt', 4);
SELECT id_encode(3);
SELECT id_encode(3, 'salt');
SELECT id_encode(3, 'salt', 4);
SELECT id_decode('mw2k','salt', 4);
SELECT id_encode(3, 'salt', 4, 'abcdefghijABCDxFGHIJ1234567890');
SELECT id_decode('830a', 'salt', 4, 'abcdefghijABCDxFGHIJ1234567890');
Requested #1