File exporting/importing
This commit is contained in:
parent
04d883f1e2
commit
4cdcc03676
1 changed files with 35 additions and 0 deletions
35
src/main/java/com/luminiasoft/bitshares/FileBin.java
Normal file
35
src/main/java/com/luminiasoft/bitshares/FileBin.java
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
package com.luminiasoft.bitshares;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class to manage the Bin Files
|
||||||
|
* @author Henry Varona
|
||||||
|
*/
|
||||||
|
public abstract class FileBin {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to get the brainkey fron an input of bytes
|
||||||
|
* @param input Array of bytes of the file to be processed
|
||||||
|
* @param password the pin code
|
||||||
|
* @return the brainkey file, or null if the file or the password are incorrect
|
||||||
|
*/
|
||||||
|
public static String getBrainkeyFromByte(byte[] input, String password){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to generate the file form a brainkey
|
||||||
|
* @param BrainKey The input brainkey
|
||||||
|
* @param password The pin code
|
||||||
|
* @return The array byte of the file, or null if an error ocurred
|
||||||
|
*/
|
||||||
|
public static byte[] getBytesFromBrainKey(String BrainKey,String password){
|
||||||
|
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue