Migration Guide
View SourceUpgrading to v1.0.0
Version 1.0.0 introduces breaking changes that follow from NoNoncense 1.0.0 breaking changes. Be sure to read its migration guide.
You only have to change anything if you are using encrypted IDs.
In order to migrate to NoNoncense 1.x encrypted nonces without breaking its uniqueness guarantees, you MUST NOT change your key or cipher:
- pass your existing encryption key to
NoNoncense.init/1new:key64option - pass
:des3toNoNoncense.init/1new:cipher64option
# in application.ex (probably)
NoNoncense.init(
name: Once,
machine_id: NoNoncense.MachineId.id!(opts),
cipher64: :des3,
key64: System.get_env("ONCE_KEY")
)