fernet / fernet-rb

Delicious HMAC Digest(if) authentication and AES-128-CBC encryption
MIT License
89 stars 22 forks source link

rubygems version 1.6 is different from github version 1.6 #20

Closed cmdrkeene closed 11 years ago

cmdrkeene commented 11 years ago

The published gem is not the one on master. This is confusing because the README examples do not work with the published gem.

hgmnz commented 11 years ago

Hi,

The master branch on github is where current development is happening. If you absolutely need to use 1.6, check out the README from the v1.6 tag (https://github.com/hgmnz/fernet/tree/v1.6).

However, I recommend using what's currently on master, which I will soon push to rubygems as version 2.0rc1. There have been numerous changes in fernet as of late, including changes to the interface, as you have found out, as well as changes to the fernet token format itself. That means that if you have tokens generated with version 1.6 stored in a database and are relying on them, conversion to the new fernet format will be required in order to continue to stay up to date with fernet.

If you are currently developing functionality that uses fernet, I strongly recommend switching to the project's master branch for now, which has the latest format that which I don't expect to change at all, so that such a conversion is not necessary. The new fernet format is also interopable with the go port of fernet and is the way forward.

I'm sorry for the confusion.