README.md in argon2-1.1.5 vs README.md in argon2-1.2.0
- old
+ new
@@ -56,9 +56,16 @@
```ruby
Argon2::Password.verify_password("password", secure_password)
```
+Version 1.2.x will now allow verifying an Argon2id password:
+
+```ruby
+Argon2::Password.verify_password("password", "$argon2id$v=19$m=262144,t=2,p=1$c29tZXNhbHQ$eP4eyR+zqlZX1y5xCFTkw9m5GYx0L5YWwvCFvtlbLow")
+ => true
+```
+
Argon2 supports an optional key value. This should be stored securely on your server, such as alongside your database credentials. Hashes generated with a key will only validate when presented that key.
```ruby
KEY = "A key"
argon = Argon2::Password.new(t_cost: 2, m_cost: 16, secret: KEY)