mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-20 22:09:12 +00:00
Remove old testdata and update documentation to new location
This commit is contained in:
parent
a6ab669811
commit
71f66e3142
4 changed files with 11 additions and 173 deletions
|
@ -3,7 +3,7 @@
|
||||||
# this depends on the 'cryptography' package
|
# this depends on the 'cryptography' package
|
||||||
# pip install cryptography
|
# pip install cryptography
|
||||||
|
|
||||||
# example usage: ./scripts/decrypt.py --input ./testdata/aegis_export.json
|
# example usage: ./scripts/decrypt.py --input ./app/src/test/resources/com/beemdevelopment/aegis/importers/aegis_encrypted.json
|
||||||
# password: test
|
# password: test
|
||||||
|
|
||||||
import argparse
|
import argparse
|
|
@ -70,8 +70,8 @@ __master key__.
|
||||||
|
|
||||||
Aegis supports unlocking a vault with multiple different credentials. The main
|
Aegis supports unlocking a vault with multiple different credentials. The main
|
||||||
credential is a key derived from a user-provided password. In addition to that,
|
credential is a key derived from a user-provided password. In addition to that,
|
||||||
users can also add a key backed by the Android KeyStore (authorized by biometrics)
|
users can also add a key backed by the Android KeyStore (authorized by
|
||||||
as a credential.
|
biometrics) as a credential.
|
||||||
|
|
||||||
#### Slots
|
#### Slots
|
||||||
|
|
||||||
|
@ -116,9 +116,14 @@ wheter the vault is encrypted or not. If it is, the value is a string containing
|
||||||
the Base64 encoded (with padding) ciphertext of the vault contents. Otherwise,
|
the Base64 encoded (with padding) ciphertext of the vault contents. Otherwise,
|
||||||
the value is a JSON object.
|
the value is a JSON object.
|
||||||
|
|
||||||
Full examples of a plain text vault and an encrypted vault are available in the
|
Full examples of a [plain text
|
||||||
[testdata](/testdata) folder. There's also a Python script that can decrypt an
|
vault](/app/src/test/resources/com/beemdevelopment/aegis/importers/aegis_plain.json)
|
||||||
Aegis vault given the password: [scripts/decrypt.py](/scripts/decrypt.py).
|
and an [encrypted
|
||||||
|
vault](/app/src/test/resources/com/beemdevelopment/aegis/importers/aegis_encrypted.json)
|
||||||
|
are available in the [test
|
||||||
|
data](/app/src/test/resources/com/beemdevelopment/aegis/importers) folder.
|
||||||
|
There's also an example Python script that can decrypt an Aegis vault given the
|
||||||
|
password: [decrypt.py](/docs/decrypt.py).
|
||||||
|
|
||||||
### Header
|
### Header
|
||||||
|
|
||||||
|
|
25
testdata/aegis_export.json
vendored
25
testdata/aegis_export.json
vendored
File diff suppressed because one or more lines are too long
142
testdata/aegis_export_plain.json
vendored
142
testdata/aegis_export_plain.json
vendored
|
@ -1,142 +0,0 @@
|
||||||
{
|
|
||||||
"version": 1,
|
|
||||||
"header": {
|
|
||||||
"slots": null,
|
|
||||||
"params": null
|
|
||||||
},
|
|
||||||
"db": {
|
|
||||||
"version": 1,
|
|
||||||
"entries": [
|
|
||||||
{
|
|
||||||
"type": "totp",
|
|
||||||
"uuid": "8e986927-a7a3-4d35-88fb-509ae7960155",
|
|
||||||
"name": "Bob",
|
|
||||||
"issuer": "Google",
|
|
||||||
"icon": null,
|
|
||||||
"info": {
|
|
||||||
"secret": "KD3WHMYQ7K7DGV5QFJNN2ZUATBC44C7F",
|
|
||||||
"algo": "SHA1",
|
|
||||||
"digits": 6,
|
|
||||||
"period": 30
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "totp",
|
|
||||||
"uuid": "97155de0-fb6a-4dfa-ac59-2abe54f5d059",
|
|
||||||
"name": "Henk",
|
|
||||||
"issuer": "Scaleway",
|
|
||||||
"icon": null,
|
|
||||||
"info": {
|
|
||||||
"secret": "MBQX47S3XOSOF7YT2CO3LZNACULZNY4P",
|
|
||||||
"algo": "SHA256",
|
|
||||||
"digits": 6,
|
|
||||||
"period": 10
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "totp",
|
|
||||||
"uuid": "a6276843-3c95-43b7-a3ef-e824c5534801",
|
|
||||||
"name": "nodejsc0d3r",
|
|
||||||
"issuer": "Github",
|
|
||||||
"icon": null,
|
|
||||||
"info": {
|
|
||||||
"secret": "642GK5EROWKUAEBFRH6FWSMM4FRKS5IA",
|
|
||||||
"algo": "SHA1",
|
|
||||||
"digits": 6,
|
|
||||||
"period": 50
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "hotp",
|
|
||||||
"uuid": "1748b48c-7496-4722-9048-17248e843773",
|
|
||||||
"name": "Lil' Droplet",
|
|
||||||
"issuer": "DigitalOcean",
|
|
||||||
"icon": null,
|
|
||||||
"info": {
|
|
||||||
"secret": "6CAIGVYB5MQ6TSZLJ56HJBWU5S3H7FUC",
|
|
||||||
"algo": "SHA512",
|
|
||||||
"digits": 6,
|
|
||||||
"counter": 102
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "totp",
|
|
||||||
"uuid": "9eef3fa3-bdde-4954-bf37-58bf1d5d6e5f",
|
|
||||||
"name": "alex",
|
|
||||||
"issuer": "TTRSS",
|
|
||||||
"icon": null,
|
|
||||||
"info": {
|
|
||||||
"secret": "BEBXDJJVXKX3ZMAZLJUU5I5PONI4IYAL",
|
|
||||||
"algo": "SHA1",
|
|
||||||
"digits": 6,
|
|
||||||
"period": 30
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "totp",
|
|
||||||
"uuid": "159b3e5f-fff4-4ff5-997a-b8d1263ee446",
|
|
||||||
"name": "MoneroMan",
|
|
||||||
"issuer": "Poloniex",
|
|
||||||
"icon": null,
|
|
||||||
"info": {
|
|
||||||
"secret": "NUSLOF6CFEWNPAARBVJ5WFA5YRRQU4FG",
|
|
||||||
"algo": "SHA256",
|
|
||||||
"digits": 8,
|
|
||||||
"period": 30
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "totp",
|
|
||||||
"uuid": "8cd843e5-4122-48e1-8089-a3d0c769741f",
|
|
||||||
"name": "givemeabucket",
|
|
||||||
"issuer": "Bitbucket",
|
|
||||||
"icon": null,
|
|
||||||
"info": {
|
|
||||||
"secret": "5KY3D2N53MRMIOMNKLLTNF3TDQJRDMEY",
|
|
||||||
"algo": "SHA1",
|
|
||||||
"digits": 6,
|
|
||||||
"period": 20
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "hotp",
|
|
||||||
"uuid": "77c6267a-b38a-40b9-a3a7-5a5ce11230bb",
|
|
||||||
"name": "Pepe",
|
|
||||||
"issuer": "4chan",
|
|
||||||
"icon": null,
|
|
||||||
"info": {
|
|
||||||
"secret": "EIQMT7NHFYJUMBKQ35P34JGLG3MO7L2W",
|
|
||||||
"algo": "SHA1",
|
|
||||||
"digits": 8,
|
|
||||||
"counter": 30
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "totp",
|
|
||||||
"uuid": "435a3542-c566-4cc0-a5f4-39cd6ffe316d",
|
|
||||||
"name": "Delete Me",
|
|
||||||
"issuer": "Facebook",
|
|
||||||
"icon": null,
|
|
||||||
"info": {
|
|
||||||
"secret": "GSQ7E5FO3UFFVANS3NSMFE7RTMRMYNCV",
|
|
||||||
"algo": "SHA1",
|
|
||||||
"digits": 6,
|
|
||||||
"period": 60
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "totp",
|
|
||||||
"uuid": "7dca76af-fa6a-4585-8d47-5a8b78130c9c",
|
|
||||||
"name": "Oh wait, they don't have TOTP",
|
|
||||||
"issuer": "Namecheap",
|
|
||||||
"icon": null,
|
|
||||||
"info": {
|
|
||||||
"secret": "HIMV4HX3REXMUG236OOLN4GS7URI247Y",
|
|
||||||
"algo": "SHA512",
|
|
||||||
"digits": 8,
|
|
||||||
"period": 30
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue