Comments (3)
Iām using the following diff in my fork, and that seems to have resolved my problems for now:
if output.status.success() { if output.status.success() {
let output_string = String::from_utf8(output.stdout).unwrap().trim().to_owned(); let output_string = String::from_utf8(output.stdout).unwrap().trim().to_owned();
// padded with extra 'ffffff' before each octet?
+ Ok(output_string)
- //println!("{:?}", output_string);
- match output_string.from_hex() {
- Ok(bytes) => {
- // filter out extra 255?
- let bytes: Vec<_> = bytes.into_iter().filter(|&b| b != 255).collect();
- Ok(String::from_utf8(bytes).expect("error converting hex to utf8"))
- },
- _ => Ok(output_string),
- }
} else {
Err(KeyringError::MacOsKeychainError)
}
from keyring-rs.
Hi,
Thanks for the report! I'm in the process of procuring a mac to help finish up development on this library.
I should be able to push a fix to crates.io by the end of the week, hope you can make do for now. I need to go back and verify the behavior of http://stackoverflow.com/questions/22370552/keychain-services-secure-notes and see if I just made a dumb mistake in the original implementation.
After that, I'm going to finish up my plans for this lib:
- tests and CI.
- osx backend with https://crates.io/crates/security-framework (which I think should work)
- windows backend
from keyring-rs.
Closed by #6. Now handles utf8 passwords (including "special chars) on osx correctly. Version is bumped to 0.2
from keyring-rs.
Related Issues (20)
- Allow using biometric auth (e.g. Touch ID) to get passwords HOT 6
- Feature request: Disabling keyutils (and only using secret-service) on Linux HOT 5
- Consider switching to windows crate HOT 1
- Support OpenBSD
- Windows test instability - hard to reproduce HOT 9
- update to zbus v4 HOT 4
- Couldn't access platform secure storage HOT 1
- Is it possible to tell if secure storage is available before storing something? HOT 2
- Rust 1.78 Error BIG PRECONDITION VIOLATION ERROR (too bad in rust to understand) HOT 1
- Windows Credential blob is being stored in an unexpected way HOT 3
- Allow binary data to be used for passwords
- [Windows] Credentials are persisted and read with a wrong service key HOT 2
- Take newer dependencies and macro crates
- Version 3 lost Sync trait bound on error variants; breaks anyhow::Result
- IosCredentials is missing trait methods in v3 HOT 13
- Changelog not updated with 3.0 HOT 2
- iOS issues: empty passwords, undefined externals HOT 2
- Choosing feature `linux-native` uses `mock` keystore
- 3.0.3 Doesn't return error when having storage access failures HOT 4
- The `default` module is not public, so can't be used to get the default credential builder
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keyring-rs.