basex icon indicating copy to clipboard operation
basex copied to clipboard

PassKey

Open mantishK opened this issue 8 years ago • 3 comments

Initialize basex with a pass key for encrypted encoding. Usage - baseX.Init(passKey)

The logic for encryption is as shown in this link

mantishK avatar Nov 06 '16 06:11 mantishK

Checks failing because I used t.Run() in tests (G0 1.7 Subtest feature), is there anything that can be done to update Go version of the CI or should I find alternate ways to test?

mantishK avatar Nov 06 '16 06:11 mantishK

@mantishK - Thanks for the pull request. You can update the travis config file to test with 1.7. Also it would be really great if you could give a description and use case for this PR. It will be helpful for others working on this package to understand your PR.

Sample travis.yml for 1.7:

language: go
go:
- 1.7
- tip
matrix:
  allow_failures:
      - go: tip

dineshappavoo avatar Nov 15 '16 05:11 dineshappavoo

Since baseX is used to generate youtube like IDs, you may want the generated IDs to be secure. With the current implementation (on master), a particular number produces a particular Youtube like ID, this is easily reversible. A crawler can know what ID leads to what number. If it is encrypted with a password, the generated ID is dependent on the passkey. With different passkey, the ID for the same number is different. This way it is hard for anyone to guess what the number is, given the ID.

mantishK avatar Nov 20 '16 05:11 mantishK