RNCryptor-go icon indicating copy to clipboard operation
RNCryptor-go copied to clipboard

Add support for key based encryption and decryption

Open dmjones opened this issue 7 years ago • 7 comments

This PR introduces key-based encryption and decryption, per the V3 RNCryptor spec. I've added test cases based on the V3 example vectors.

I took the opportunity to tidy some of the existing code, extracting constants and removing some redundant code. I hope that's ok.

My first commit uses gofmt to tidy up the formatting, so the real changes can be seen by diffing 215959a and 938f1ce.

(FYI - I'm the developer for JNCryptor, the Java version of RNCryptor)

dmjones avatar Sep 23 '17 06:09 dmjones

Clearly the README.md will need updating if this is merged. I held off doing that until we agreed on the PR.

dmjones avatar Sep 23 '17 06:09 dmjones

Oh wow! Thank you @dmjones500, this is great!

I'll took a look as soon as I can 🎉 🎉

stevenschobert avatar Sep 25 '17 18:09 stevenschobert

Hey @dmjones500, sorry for the delay. All these changes look great to me! 👍

Do you have any spare time to update the readme? Thanks again for getting this implemented, it's been a while since I touched this library, so I'm glad it's getting some improvements :)

stevenschobert avatar Oct 01 '17 15:10 stevenschobert

I'm happy to make a few updates. What are your thoughts about moving towards using godoc (e.g. https://godoc.org/github.com/RNCryptor/RNCryptor-go) rather than documenting each function individually on the README.md?

See my other library for an example of just linking to the docs.

dmjones avatar Oct 05 '17 18:10 dmjones

@dmjones500 I think moving the docs to godoc would be great! I should have done that the first time around 😄

stevenschobert avatar Oct 20 '17 15:10 stevenschobert

Ping to the maintainer @stevenschobert – I know this library hasn't been updated in forever, but would this be OK to merge? I can sign up for updates/godoc changes as a separate PR if you'd like those added.

mrosales avatar Mar 29 '21 22:03 mrosales

Hey @mrosales! Thanks for the reminder -- I would love to get this merged and released.

It's been a few years since I worked on this project though, and it might be a while before I get the time to give this the thorough review it needs.

If anyone has time to help me review (@dmjones @mrosales) this and sure up any testing/documentation gaps, I'd greatly appreciate it!

stevenschobert avatar Apr 02 '21 16:04 stevenschobert