Coder Social home page Coder Social logo

has-taiar / keychain.net Goto Github PK

View Code? Open in Web Editor NEW
28.0 28.0 10.0 36.18 MB

A simple and unified api that enables developer to set, update, get and delete keys and passwords on the keyChain (supports iOS, Android, and WinPhone)

Home Page: http://www.hasaltaiar.com.au

License: MIT License

C# 96.17% Batchfile 3.83%

keychain.net's People

Contributors

has-taiar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

keychain.net's Issues

Get key/password from Android doesn't strongly match

Hi

So the get key/password value method Android implementation does not choose a strong match. It doesn't do an Equals it does a Contains. I had 2 keys, Token and RefreshToken, whenever I wanted to get the Token it was giving me the RefreshToken. I got around this by simply renaming the keys to Token and Refresh.

I don't have time to create a fix and pull request yet, but thought I'd let anyone else know if they have encountered this.

Properly handle corrupt KeyChain

I'm having the below crash when initializing the Keychain on Android. I suspect the stored KeyStore file is corrupt. The problem is that there is no clean way to clear the Keystore in such a case and the exception isn't handled. I would probably handle it like the FileNotFoundException on line 65, creating a new empty store.

[Error] Failed to initialize applicationJava.IO.EOFException: Exception of type 'Java.IO.EOFException' was thrown.
11-21 09:23:16.848 E/        ( 2044):   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 
11-21 09:23:16.848 E/        ( 2044):   at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x00089] in <7cfbebb561c54efc9010b018c0846c7e>:0 
11-21 09:23:16.848 E/        ( 2044):   at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeNonvirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x0001f] in <7cfbebb561c54efc9010b018c0846c7e>:0 
11-21 09:23:16.848 E/        ( 2044):   at Java.Security.KeyStore.Load (System.IO.Stream stream, System.Char[] password) [0x00043] in <e975227ac8644a30bb0866117325de0d>:0 
11-21 09:23:16.848 E/        ( 2044):   at KeyChain.Net.XamarinAndroid.KeyChainHelper..ctor (System.Func`1[TResult] context, System.String keyStoreFileProtectionPassword, System.String fileName, System.String serviceId) [0x000af] in <09887da633ad457f806c800538c7f9a4>:0 
11-21 09:23:16.848 E/        ( 2044):   at KeyChain.Net.XamarinAndroid.KeyChainHelper..ctor (System.Func`1[TResult] context, System.String keyStoreFileProtectionPassword) [0x00000] in <09887da633ad457f806c800538c7f9a4>:0 
11-21 09:23:16.848 E/        ( 2044):   at Project.Droid.SplashActivity+<InitializeApplicationAsync>d__17.MoveNext () [0x000e9] in E:\Project\Droid\Activity\SplashActivity.cs:207 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.