Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use with mnesia? #55

Closed
beardedeagle opened this issue Feb 26, 2018 · 3 comments
Closed

Use with mnesia? #55

beardedeagle opened this issue Feb 26, 2018 · 3 comments

Comments

@beardedeagle
Copy link

This lib has a hard dep on ecto and unfortunately the ecto_mnesia lib isn't fully there yet. Any tips on what would need to be done to decouple this from ecto to be used with mnesia?

@danielberkompas
Copy link
Owner

Cloak provides a usable module API that you could call directly. You could call Cloak.encrypt and Cloak.decrypt directly to encrypt or decrypt binaries and not use any of the Ecto Types.

I haven't used Mnesia in production, so I don't know it's API well enough to know if mix cloak.migrate could work without Ecto.

@beardedeagle
Copy link
Author

I can give that a try and see how it works. Baring that I can create a sister package that deals with mnesia/ets

@danielberkompas
Copy link
Owner

If you went the second route, I'd rather split out the ecto-specific code into cloak_ecto, and then we could make cloak_ets, cloak_mnesia etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants