Comments (2)
I will probably use some punk solution like the following:
IV = hmac_sha256(key_iv_derivation, vm_name).take(16)
CT = aes_256_gcm(key_encrypt, pad(128, vm_name))
filename = base64(IV||CT)
Properties:
- Obscures length of VM name. (As of Qubes 3.2, VM name can have at most 31 characters.)
- Deterministic – IVs are deterministically generated.
- Reversible – one can decrypt it with proper key.
- Authenticated.
- Hopefully secure.
- Probably pretty non-standard. But I am OK with such a risk for hiding not-so-sensitive data in MVP.
from qubes-incremental-backup-poc.
Changes:
- Will use base32 instead of base64 in order to support case-insensitive storages.
- Probably smaller padding in order to maintain filenames at most 255.
- CTR+HMAC instead of GCM, because I was not able to find a suitable implementation of GCM.
https://pthree.org/2016/02/27/manual-authenticated-file-encryption-with-openssl/#comment-269294
from qubes-incremental-backup-poc.
Related Issues (20)
- Backup is convenient
- Restore on clean system is convenient
- Initial setup is convenient
- Derive password for storage backend from master passphrase
- Consider backup backends HOT 7
- There should be automated tests for backup and restore scenarios
- Use Merkle-tree-based storage HOT 1
- Rewrite cryptopunk
- Use various BDVMs
- Add license
- Add versioning and release 0.1
- Add support for qvm-backup HOT 1
- Review documentation before 0.1 release
- Support storing backups in multiple stores
- Create integration test for some basic backup&restore scenarios
- Sync in more universal way
- Restore hangs when there in not enough space HOT 1
- Restore: VM with proper name should proper when finished
- Allow passing private img size when restoring
- Provide instructions for how to use this for “production” (practical) use HOT 1
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 qubes-incremental-backup-poc.