2 KiB
2 KiB
0.1.4
Added:
Master
trait: provides methods to manage mcaptcha
Changed:
-
PoWConfig
has an extra field to send internalPoW
salt to clients. Salt is used to prevent dictionary attacks using rainbow tables. This salt shouldn't be used elsewhere in the program as it's exposed to the internet. IdeallymCaptcha
should automatically generate random salt and rotate periodically, maybe in the next version. -
master::Master
is moved tomaster::embedded::master
in preparation for Redis based implementation. -
AddSite
message forMaster
now requires an instance ofcrate::mcaptcha::MCaptcha
. In the case ofcrate::master::embedded::master
, it automatically startsCounter
actor.
0.1.3
Added
HashCache
was extended to store captcha responsesHashCache
was extended to cache site keys when cachingPoW
configurations as a result:Retrieve
RetrievePoW
now returnsCachedPoWConfig
- random token generation post
PoW
verification - token validation
Changed
Cache
becameCachePoW
(HashCache
extension)Retrieve
becameRetrievePoW
(HashCache
extension)DeleteString
becameDeletePoW
(HashCache
extension)Save
trait now requires three new message impls (HashCache
extension_System.verify_pow
now returns aString
instead ofbool
Removed
CachePoW
constructor was removed in favour ofCachwPoWBuilder
Fixed
- a bug in
mCaptcha/pow_sha256
was causing errors in PoW computation
0.1.2
Changed
actix
upgraded to0.11
0.1.1
Added
Master
packs a garbage collector to stop and get rid of inactiveMCaptcha
actorsserde::{Serialize, Deserialize}
impls (shouldn't break anything)
Changed
- typo fix:
MCaptcha::decrement_visiotr()
becameMCaptcha::decrement_visitor()
MCaptcha
throws error when duration is 0Visitor
is changed toAddVisitor
Master
constructor accepts a parameter to configure GC(see previous point) period