/** * Builds a BlobCrypter from the specified master key * * @param masterKey */ public BasicBlobCrypter(byte[] masterKey) { this(masterKey, null); setHmacTypeFromPreferredHMACAlgorithm(); }
/** * Builds a BlobCrypter from the specified master key * * @param masterKey */ public BasicBlobCrypter(String masterKey) { this(masterKey, null); setHmacTypeFromPreferredHMACAlgorithm(); }
/** * Builds a BlobCrypter from the specified master key * * @param masterKey */ public BasicBlobCrypter(byte[] masterKey) { this(masterKey, null); setHmacTypeFromPreferredHMACAlgorithm(); }
/** * Builds a BlobCrypter from the specified master key * * @param masterKey */ public BasicBlobCrypter(String masterKey) { this(masterKey, null); setHmacTypeFromPreferredHMACAlgorithm(); }
/** * Builds a BlobCrypter from the specified master key * * @param masterKey */ public BasicBlobCrypter(String masterKey) { this(masterKey, null); setHmacTypeFromPreferredHMACAlgorithm(); }
/** * Builds a BlobCrypter from the specified master key * * @param masterKey */ public BasicBlobCrypter(byte[] masterKey) { this(masterKey, null); setHmacTypeFromPreferredHMACAlgorithm(); }
/** * Creates a crypter based on a key in a file. The key is the first line * in the file, whitespace trimmed from either end, as UTF-8 bytes. * * The following *nix command line will create an excellent key: * <pre> * dd if=/dev/random bs=32 count=1 | openssl base64 > /tmp/key.txt * </pre> * * @throws IOException if the file can't be read. */ public BasicBlobCrypter(File keyfile) throws IOException { this(keyfile, null); setHmacTypeFromPreferredHMACAlgorithm(); }
/** * Creates a crypter based on a key in a file. The key is the first line * in the file, whitespace trimmed from either end, as UTF-8 bytes. * * The following *nix command line will create an excellent key: * <pre> * dd if=/dev/random bs=32 count=1 | openssl base64 > /tmp/key.txt * </pre> * * @throws IOException if the file can't be read. */ public BasicBlobCrypter(File keyfile) throws IOException { this(keyfile, null); setHmacTypeFromPreferredHMACAlgorithm(); }
/** * Creates a crypter based on a key in a file. The key is the first line * in the file, whitespace trimmed from either end, as UTF-8 bytes. * * The following *nix command line will create an excellent key: * <pre> * dd if=/dev/random bs=32 count=1 | openssl base64 > /tmp/key.txt * </pre> * * @throws IOException if the file can't be read. */ public BasicBlobCrypter(File keyfile) throws IOException { this(keyfile, null); setHmacTypeFromPreferredHMACAlgorithm(); }