mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-14 22:12:55 +00:00
Initial pass on adding support for persistence using sqlcipher
To keep the database schema simple we just save the otpauth:// url and let KeyInfo take care of checking for validity. This patch also includes multiple fixes for the KeyInfo class. We still need a separate activity to allow the user to enter their PIN/password. Currently, "test" is used as the password for the database.
This commit is contained in:
parent
5994be2e4d
commit
8063ba11f1
9 changed files with 210 additions and 15 deletions
16
app/src/main/java/me/impy/aegis/crypto/CryptoUtils.java
Normal file
16
app/src/main/java/me/impy/aegis/crypto/CryptoUtils.java
Normal file
|
@ -0,0 +1,16 @@
|
|||
package me.impy.aegis.crypto;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
public class CryptoUtils {
|
||||
private CryptoUtils() {
|
||||
}
|
||||
|
||||
public static void zero(char[] data) {
|
||||
Arrays.fill(data, '\0');
|
||||
}
|
||||
|
||||
public static void zero(byte[] data) {
|
||||
Arrays.fill(data, (byte)0);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue