Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Wizziee
    @WizzieP
    hey guys, wanna to contribute? any features to work on?
    Wizziee
    @WizzieP
    @orhanobut
    Christof
    @ChristofBuechi
    Is there a way to delete the storage and re-init it ?
    Christof
    @ChristofBuechi
    made something like: " public static Boolean clearHawk() {
    return Hawk.resetCrypto() && Hawk.clear();
    }"
    Orhan Obut
    @orhanobut
    a little late reply but yea that would work, resetCrypto() and clear() would completely clear the storage that hawk claimed
    Ray Ch
    @iraycd
    Can I use hawk for storing Credit Card details?
    Orhan Obut
    @orhanobut
    well, you can use but I wouldn’t recommend to keep credit card details in the device at all
    Adrian Chifor
    @adrianchifor
    @orhanobut Is there a way to release the Hawk instance from memory? I have a scenario where I want to init the Hawk with a password, get what I need and then clear the instance so the password variable is cleared from the HawkBuilder. Thanks!
    Orhan Obut
    @orhanobut
    there is no memory option, everydate is saved persistent. But do you need any other data apart from this scenario? What is the difference by using normally and clear all data afterwards?
    Adrian Chifor
    @adrianchifor
    Yes, it's persistent, but thats not the point. The Hawk class is a singleton that gets saved in memory when initialised, more specifically the static HawkBuilder object. There should be a way (like a close method) that sets the HawkBuilder object in the Hawk class to null so the instance can be garbage collected. Currently, if a user has a rooted device, he could read the HawkBuilder object from memory (RAM) and find out the password.
    Orhan Obut
    @orhanobut
    Hmm, I see your point, you want to be able to delete whole hawk instances in the memory, actually that’s a good point, we can add this or if you can I’d love to have this contribition.
    Adrian Chifor
    @adrianchifor
    Will do. Thanks for your response
    Orhan Obut
    @orhanobut
    perfect!, would be great if you create an issue about this and I can put the label “in progress"
    Jordy Langen
    @JordyLangen
    Hi, are there any options or thoughts on the possibility to query?
    Maybe some API like Hawk.query<Foo>().where((foo) => foo.isBar).toList()
    Exerosis
    @Exerosis
    anyone ever paired hawk with https://github.com/NYTimes/Store?
    Barton Stanley
    @bstanleynerd
    Is Hawk thread-safe?